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

Thoroughly stumped about date format...

Status
Not open for further replies.

dmbfan715

Technical User
Jun 27, 2002
20
US
Hey guys,

I've asked this question before, but need to ask it again b/c of some changes. I made a database in 97 and now I have to convert it to Office/Access XP. In my query, the user enters a report start date in the form mm/dd/yyyy (can be ANY date). What I need to do, is pull records from one table that are minus 1 month from the date they entered, through the future. These records I'm pulling all have start dates that are the 1st of every month (ie. 7/1/02). In Access 97 I used the following:

((tblEntitlement.BeginDate)>=CVDate(Format(DateAdd("m",-1,[Enter start date]),"mm/""01""/yy")))

This worked wonderfully in 97. When I converted the database to XP and ran the query, I get the error message that the "format function is not recognized/found/whatever". A co-worker and I tried to figure out how to fix this, but no matter what we tried using, the "-1 month" part isn't working- it only gives records from the date entered to future.

Anyone have a solution?? Thanks in advance! :)

Shivani
 
My first guess . Check for missing references under modules/new/tools/references
 
Hi gol4,

Yep, we tried that one...I guess I can look at again to make sure. Does anyone know which specific reference the format function uses?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top