Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / May 2007

Tip: Looking for answers? Try searching our database.

Parameter based on Date Field

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dh1069 - 08 May 2007 18:26 GMT
I have a customer table with a Date of Birth field. I want to be able to
prompt a user to enter a begin and end date to print out birthday letters
based solely on the user entering the begin birth month and day and the end
birth month and day, and not the year. How can this be done?
Giberish - 08 May 2007 23:33 GMT
> I have a customer table with a Date of Birth field. I want to be able to
> prompt a user to enter a begin and end date to print out birthday letters
> based solely on the user entering the begin birth month and day and the end
> birth month and day, and not the year. How can this be done?

Have you tried creating a query based on the table with a criteria
such as:

[Enter Start Date] And [Enter End Date]

This would prompt a user to enter both a start date and end date.
John W. Vinson - 09 May 2007 01:30 GMT
>> I have a customer table with a Date of Birth field. I want to be able to
>> prompt a user to enter a begin and end date to print out birthday letters
>> based solely on the user entering the begin birth month and day and the end
>> birth month and day, and not the year. How can this be done?

The problem is that 5/16/1946 isn't coming this month... it was 61 years ago,
right? <g>

Put a calculated field in a Query by typing

HappyHappy: DateSerial(Year(Date()), Month([DOB]), Day([DOB]))

to get this year's birthday anniversary date. A criterion of

BETWEEN [Enter start date:] AND [ENter end date:]

will let the user enter a date range; a criterion

>= Date() AND < DateAdd("ww", 4, Date())

will show all birthdays coming up in the next four weeks.

            John W. Vinson [MVP]
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.