Thanks for all the help I recieved in the past. I have another question:
Is it possible to pass the results from a subquery that returns a single field but multiple rows to be used as the criteria for another query. I created a subquery then transfered the SQL code to the appropriate criteria line in a query grid. I received an error message stating “At most, one record can be returned by this subquery”. Is there a way to force the results of a subquery to return as an array?
Just a little detail: I’m writing a query to tally data from several different “Group Numbers” The query returns just one record with all groups totaled. The problem is that sometimes this report will be run for just one group, other times it will be run for 15 or more groups totaled together. I can manually type in the criteria and the query runs fine, but can’t seem to figure out how to get it from a table. I need to save all the group numbers necessary for each report, since they will be run quarterly. The group numbers are 18 characters in length and I need to reduce typing errors. I have written a routine to save the numbers to a table, but then using them later as criteria for a query has proven to be problematic. Anyone have any ideas for this one?
Again, thanks for your help.