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

Display records from the last year

Status
Not open for further replies.

ToshTrent

Technical User
Jul 27, 2003
209
Hi,

What's the best method to get all records which were created within the last year?

>=Date()-365 ? Or is there a more professional method?

Cheers
Tosh
 
To deal with lap years:
>DateSerial(Year(Date)-1, Month(Date), Day(Date))

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Brill thanx PHV!

[red]
Thankyou[/red]
Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top