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

Prior 18 months - an extra day???? Huh?

Status
Not open for further replies.

goldfishhh

IS-IT--Management
Jul 23, 2008
23
0
0
US
Why on earth am I getting an extra day (Dec 31st)?? Too many ")"?

Code:
HAVING (((ProdJobABEND.DATE)>DateAdd("m",-18,(Now()-(Day(Now())))) And (ProdJobABEND.DATE)<=Now()-Day(Now())));
 
WHERE ProdJobABEND.DATE Between DateSerial(Year(Now()),Month(Now())-18,01) And (Now()-Day(Now()))

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top