V
VBA Coder
I have a Delete Query named "Test_Delete", with one
parameter, "ID_In" on the "ID" field of the table. The
Delete Query will delete all records from the "Test" table
where the "ID" field equals the value the user entered in
the "ID_In" parameter dialog box.
Now, I would like to create a form where the user enters
the ID_In parameter into a text box, and presses the OK
button execute this query. The form would pass the value
entered in the ID_In text box to the parameter query and
do the deletes without having the user enter the value
into a parameter dialog box.
I am familiar with using the QueryDef object to pass the
parameter using Recordsets, but I have had any success
passing the parameter to an Action Query (ie: Delete,
Update, Append).
Does anyone have sample code that would accomplish passing
a parameter(s) to an Action Query?
parameter, "ID_In" on the "ID" field of the table. The
Delete Query will delete all records from the "Test" table
where the "ID" field equals the value the user entered in
the "ID_In" parameter dialog box.
Now, I would like to create a form where the user enters
the ID_In parameter into a text box, and presses the OK
button execute this query. The form would pass the value
entered in the ID_In text box to the parameter query and
do the deletes without having the user enter the value
into a parameter dialog box.
I am familiar with using the QueryDef object to pass the
parameter using Recordsets, but I have had any success
passing the parameter to an Action Query (ie: Delete,
Update, Append).
Does anyone have sample code that would accomplish passing
a parameter(s) to an Action Query?