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

I need to fetch data until previous month end

Status
Not open for further replies.

varadha72

Programmer
Oct 14, 2010
82
US
Hi

Can someone help me here, I need to fetch/filter data in record selection to return data until previous month end.
Current Date- 9/2/2014
Data Fetch- Until 8/31/2014

Please correct me if this is incorrect-
Sample_date}<=DateSerial(Year(currentdate), Month(currentdate), 1)-1;

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top