I have the names of the employees and I need to have a different record for
each employee for the 12 days off. I want to try and like the date of the
holiday to the date of the day. If the two dates match then everyone gets
that day off. If they don't match then it keeps going to check the other
days in the week, until it finds a match or moves on.
That's not how queries work. You're thinking procedurally - queries
work in "sets" instead, in an all-at-once manner. You run the query
and it updates (or adds, or deletes, or displays - depending on the
type of query) all the records which match, in one go.
I would GUESS that what you want is a Table named tblHolidays, with
one datefield (and perhaps a text field naming the holiday).
You could create a Query including this table and your employee table,
with NO join line; if tblHolidays has 12 records, you'll see twelve
records for each employee. You can then run this as an Append query to
a days-off table (which I presume you have, though you haven't posted
any information about the structure of your tables).
John W. Vinson[MVP]
Join the online Access Chats
Tuesday 11am EDT - Thursday 3:30pm EDT
http://community.compuserve.com/msdevapps