Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Critera expression for following month

Status
Not open for further replies.

ankat

Technical User
Nov 7, 2002
4
0
0
AU
I am looking for a criteria expression using access that lists all peoples names (from my surname field) if they have a upcoming birthday during next month (from my birthdate field).The table containing the surname field and birthdate field is called client information.
Any help would be greatly appreciated.
 
Hi

"SELECT * FROM myTable WHERE Month(Birthday) = " & Month(DateAdd("m",1,date())) & ";"

should do it, you have to use your own table/column names of course Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
UK
 
Thanks for your reply Ken.
Is this correct.
WHERE ((((([Client Infomation]![Birthdate]=Month (DateAdd("m",1,Date())) & ";"
Where do I enter the Surname field in this expression.
I keep getting invalid syntax.
 
Copy and paste this into the SQL view of a query:

SELECT Surname
FROM [Client Information]
WHERE (((Month([Birthdate]))= Month(DateAdd("m",1,Date())))); Jim Lunde
compugeeks@hotmail.com
We all agree your theory is crazy, but is it crazy enough?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top