I have the following criteria under [location] field in a query:
Like [Enter location code: ND for North Dallas, SM for South McAllen, etc or leave blank for all records] & "*"
Is there any way to modify this code so that when the query is run, I can type something like [ "ND" or "SM" or "RD" ], and then the query may show me only the ND, SM, and RD location combined together versus having to run it three times for each location individually? In other words, I dont want it to restrict me to type one specific city codes at a time.
________________________
I am basing the above requirment on the following example which actually looks at a form where a user will make the selections in up to 8 fields and then run the query. So if it can be done where the criteria is looking at up to 8 fields in a form, why can it not utilize the same principle by entering the information whenever prompted?
Here is the 2nd example:
[forms]![form1]![ss] Or [forms]![form1]![ss1] Or [forms]![form1]![ss2] Or [forms]![form1]![ss3] Or [forms]![form1]![ss4] Or [forms]![form1]![ss5] Or [forms]![form1]![ss6] Or [forms]![form1]![ss7] Or [forms]![form1]![ss8]
This works great. They can choose any and all fields in form1 while the query provides all information efficiently.
________________________
I am just trying to get away from having to develop specific forms for each and every such query's convenient criteria utilization.
Like [Enter location code: ND for North Dallas, SM for South McAllen, etc or leave blank for all records] & "*"
Is there any way to modify this code so that when the query is run, I can type something like [ "ND" or "SM" or "RD" ], and then the query may show me only the ND, SM, and RD location combined together versus having to run it three times for each location individually? In other words, I dont want it to restrict me to type one specific city codes at a time.
________________________
I am basing the above requirment on the following example which actually looks at a form where a user will make the selections in up to 8 fields and then run the query. So if it can be done where the criteria is looking at up to 8 fields in a form, why can it not utilize the same principle by entering the information whenever prompted?
Here is the 2nd example:
[forms]![form1]![ss] Or [forms]![form1]![ss1] Or [forms]![form1]![ss2] Or [forms]![form1]![ss3] Or [forms]![form1]![ss4] Or [forms]![form1]![ss5] Or [forms]![form1]![ss6] Or [forms]![form1]![ss7] Or [forms]![form1]![ss8]
This works great. They can choose any and all fields in form1 while the query provides all information efficiently.
________________________
I am just trying to get away from having to develop specific forms for each and every such query's convenient criteria utilization.