ADOQuery - not displaying columns after creation.
Hello,
I am using FR 5.5.11 and I often encounter a problem in which after creating new ADOQuery in designer I don't see its columns. I mean on the DataTree panel I see only ADOQuery object and no columns for it.
So I need to setup ADOQuery.DataField name manually in band.
ADOQuery4 and ADOQuery1 do not display its columns. They are valid queries, they have parameters.
Am I the only one having this problem?, is there any solution to this?
Thanks.
I am using FR 5.5.11 and I often encounter a problem in which after creating new ADOQuery in designer I don't see its columns. I mean on the DataTree panel I see only ADOQuery object and no columns for it.
So I need to setup ADOQuery.DataField name manually in band.
ADOQuery4 and ADOQuery1 do not display its columns. They are valid queries, they have parameters.
Am I the only one having this problem?, is there any solution to this?
Thanks.
Comments
Yes, please take a look at this example:
First, create these two tables in MS SQL.
Tables do not need to have any data.
Now, create a new report, put ADODatabase1 object and ADOQuery1 object.
In ADOQuery1 put this code:
Close ADOQuery1, you will see that columns are visible:
Now, put ADOQuery2 and fill it with this SQL code:
As you can see, the code is exactly the same but with four parameters, fill values for these parameters:
Close the window, and you will see that columns for ADOQuery2 are not visible.