Birthday form

  • Thread starter alpapak via AccessMonster.com
  • Start date
A

alpapak via AccessMonster.com

Birthday form
------------------------------------------------------------------------------
--

hi
i want to make a birthday form and to display me name , age , day of birth .
i need to see the birthdays of the following 30 days.??.

table Customers
CustomersID
NameCustomers
DayOfBirth


From this table i will make a form

thxs
 
D

Duncan Bachen

alpapak said:
Birthday form
------------------------------------------------------------------------------
--

hi
i want to make a birthday form and to display me name , age , day of birth .
i need to see the birthdays of the following 30 days.??.

table Customers
CustomersID
NameCustomers
DayOfBirth


From this table i will make a form

thxs

Same process as the last two messages. The function you need to use is
dateadd().

Your criteria to find birthdays in the next 30 days is:
Between Date() and DateAdd("d", 30, Date())
 
F

fahre

Make this query:

SELECT Customers.NameCustomers, Customers.DayOfBirth
FROM Customers
WHERE (((Month(Customers!DayOfBirth))=Month(Now())) AND
((Day(Customers!DayOfBirth))>=Day(Now()))) OR
(((Month(Customers!DayOfBirth))=Month(Now())+1) AND
((Day(Customers!DayOfBirth))<Day(Now())))
ORDER BY Month(Customers!DayOfBirth), Day(Customers!DayOfBirth);

This query must be source for your birthday form
 

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


Top