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

Check DUE DATE in Mirosoft access.???????????

Status
Not open for further replies.

JasonLiew

Programmer
Oct 15, 2001
37
SG
HI to all expert out there,

I have a problem in creating a functon to check for Date(A) with current date.... I want it to auto response me 2 weeks before Date(A). Can it be done? I need an example.

regards.
Jason
 
From what I understand from your post this will do the job, if not then can you go into more detail with your post.

Why not use the dLookup or dCount function and then in the criteria put in something like this:

Dcount("[DATE(A)]","table","[Date(A)] between #" & now() & "# AND #" now()+14 & "#")

This will tell you when the [DATE(A)] is between Now() (Todays date) and the next 14 days.

I find that Dcount is better than Dlookup as it can manage null values better.
 
Hi mswilson16,

I think theres a syntax error.
It show a warning:

Compile Error:
Expected: list seperator or ]

Jason.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top