CREATING WAY OF SHOWING CLIENTS BIRHTDAYS

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

using Access and i have created tables with clients details on. How can i get
the tables to show me clients birthdays a couple of days before they occur.
The object is to send clients cards for their birthdays?
please help
 
Gemma,

You could either run an AutoExec macro on loading your database, or provide
a button on your startup form that would execute a query. The following
selects all who have a birthday coming up in the next 7 days:

SELECT Client.LName, Client.FName, (other desired fields),
DateValue(Month([Birthday]) & "/" & Day([Birthday]) & "/" & Year(Date())) AS
ThisYearsBirthday
FROM Client
WHERE (((DateValue(Month([Birthday]) & "/" & Day([Birthday]) & "/" &
Year(Date())))<=Date()+7));

Hope that helps.
Sprinks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top