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

Date Function Question

Status
Not open for further replies.

Thedoc56

MIS
Joined
Mar 20, 2002
Messages
2
Location
US
I am trying to write an expression that will check a date ("POL_EFF") that is already in the database and add one month to it. What am I doing wrong in my syntax?

If Month(Date) = Month("POL_EFF")
Then DateAdd("m", 1,Month( "POL_EFF"))
 
The correct syntax would be :
If Month(Date) = Month("POL_EFF")
Then DateAdd("m", 1,[POL_EFF])
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top