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!

Date Ref in IF statement

Status
Not open for further replies.

Steve1001

Technical User
Nov 1, 2002
17
US
Hi

I am trying to add a date reference in an If statement so that if the current date is greater than the date set of a form the code will run, can any body help please

Thanks

Steve
 
To compare two dates you can best use the function "DateDiff". To get the current date you can use the function "Date". You can find more info and examples in the Access Visual Basic Help.

Greetz,

Dirk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top