View Single Post
  #1  
Old May 25th, 2010, 07:58 PM posted to microsoft.public.access.queries
Jill
external usenet poster
 
Posts: 166
Default Parameter in Union Query

I inherited about ten databases, Year2001, Year2002, etc. These databases are
not related, even though they have information about same ID's (For example,
ID 12224 is David Monk in Year2001, Year2002, etc.) Then I often see needs to
compare Year2001 and Year2002, etc. So I built another database, which is a
collection of an essential table from each year. There I created a union
query, which allows me to see a history of, say, David Monk. Problem is, when
I want to see a history of Judy Tyler, I have to type her ID ten times in
SQL. If there is a way I can create a parameter where I put an ID only once,
it would be splendid. Help?
Thank you.