I am interested to build a "dynamic query"
I opened a combo, take data from a table, and showing in this combo for
example the description field records from this table.
When an "afterupdate event" occurs, (it means I selected an item from the
combo box) I want to create a query that takes this item as a parameter and
point to a table according to this parameter.
O.K, I put the top item from the combo in a text box and loading the
parameter in the SQL statement from this text, but when I run the query
DoCmd.OpenQuery "query_name") MS Access opens a dialog box and ask from me
to put in the parameter.
I don't want this dialog, I want the SQL take automatic the parameter.
N.B. Please answer at this email :richardn@iec.co.il
Thanks,
Richard
I opened a combo, take data from a table, and showing in this combo for
example the description field records from this table.
When an "afterupdate event" occurs, (it means I selected an item from the
combo box) I want to create a query that takes this item as a parameter and
point to a table according to this parameter.
O.K, I put the top item from the combo in a text box and loading the
parameter in the SQL statement from this text, but when I run the query
DoCmd.OpenQuery "query_name") MS Access opens a dialog box and ask from me
to put in the parameter.
I don't want this dialog, I want the SQL take automatic the parameter.
N.B. Please answer at this email :richardn@iec.co.il
Thanks,
Richard