TMcAteer
02-23-2002, 05:22 AM
HI I have a problem using the syntax in access 97, the problem is that i have three queries but i only want to run one of them. The way i want to select the query to run is by opening a form with a subform in it, the fields that i am using are in the subform but i have to open it using the main form so the right record is already selected for use on the query
I want to use the IF THEN statement to run each query. In my form i have 3 check boxes each with different names, eg check1, check2, check3. If check1 is ticked/true then i want it to run query1, but if check2 is true then i want it to run query2. How would i go about this using a command button on the subform.
I would be grateful for any help at all
Tom
I want to use the IF THEN statement to run each query. In my form i have 3 check boxes each with different names, eg check1, check2, check3. If check1 is ticked/true then i want it to run query1, but if check2 is true then i want it to run query2. How would i go about this using a command button on the subform.
I would be grateful for any help at all
Tom