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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Date

Status
Not open for further replies.

misys

Programmer
Feb 11, 2002
7
CA
gone blank, I have a form that feeds a query etc. with dates a begin date and an end date. I wish to have the begin date to default to the first day of the current month. I have the end date as =Now() which works fine returning a date of today. Can someone give me the function to go in the default line?

Thanks

misys
 
From the debug window:

dteMyDate = date()
? dteMyDate
6/24/02
firstDayOfMonth = DateSerial(Year(dteMyDate),Month(dteMyDate),1)
? firstDayOfMonth
6/1/02
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top