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

Find Access table record by Date function

Status
Not open for further replies.

rodgs

Technical User
Mar 26, 2007
1
US
I have an Access table in which one field (fldDate) is the date. I need to locate the record that corresponds to the fldDate being 12/31 of last year and then print the value of field D1 of that record. I can determine the date easily enough by using DateAdd("yyyy",0,date()-DatePart("y",date())) but I seem to lose date formatting or something because it doesn't work for locating the proper record. What should the procedure be to locate the record?
 
What is your actual code ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top