B
Bill Smith
I have inheirted a database from our club where we acknowledge peoples
birthdays. I am not real familar with this database and would like
some help. I need to get this data but I need to only get this data
from people who are up to date on their dues. So how do I add a
statement to the following query where it will only do this if the
"date dues paid" is greater than 9/05/2005?
SELECT sheet1.[First Name], sheet1.[Last Name], sheet1.Bday
FROM sheet1
WHERE (((sheet1.Bday) Like "01*"));
UNION SELECT sheet1.Spouse, sheet1.[Last Name], sheet1.[Spouse Bday]
FROM sheet1
WHERE (((sheet1.[Spouse Bday]) Like "01*"));
I tried to do it in the following way:
SELECT sheet1.[First Name], sheet1.[Last Name], sheet1.[Spouse],
sheet1.Bday, sheet1.Date Dues Paid
FROM sheet1
WHERE ((( sheet1.Date Dues Paid)"> #9/1/2005#")); WHERE
(((sheet1.Bday) Like "01*"));
UNION SELECT sheet1.Spouse, sheet1.[Last Name], sheet1.[Spouse Bday]
FROM sheet1
WHERE (((sheet1.[Spouse Bday]) Like "01*"));
It just keeps giving me an error message Syntax error (missing
operator)
Please help
Bill
birthdays. I am not real familar with this database and would like
some help. I need to get this data but I need to only get this data
from people who are up to date on their dues. So how do I add a
statement to the following query where it will only do this if the
"date dues paid" is greater than 9/05/2005?
SELECT sheet1.[First Name], sheet1.[Last Name], sheet1.Bday
FROM sheet1
WHERE (((sheet1.Bday) Like "01*"));
UNION SELECT sheet1.Spouse, sheet1.[Last Name], sheet1.[Spouse Bday]
FROM sheet1
WHERE (((sheet1.[Spouse Bday]) Like "01*"));
I tried to do it in the following way:
SELECT sheet1.[First Name], sheet1.[Last Name], sheet1.[Spouse],
sheet1.Bday, sheet1.Date Dues Paid
FROM sheet1
WHERE ((( sheet1.Date Dues Paid)"> #9/1/2005#")); WHERE
(((sheet1.Bday) Like "01*"));
UNION SELECT sheet1.Spouse, sheet1.[Last Name], sheet1.[Spouse Bday]
FROM sheet1
WHERE (((sheet1.[Spouse Bday]) Like "01*"));
It just keeps giving me an error message Syntax error (missing
operator)
Please help
Bill