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

Query with Date Format In Access Runtime

Status
Not open for further replies.

snyperx3

Programmer
May 31, 2005
467
US
I have a database that I must distribute to several computers that only have Access 2002 Runtime installed. In several of my queries i have to display the date in the format mm/dd, or an example: "12/07". I was using
Code:
Format([Date],""mm/dd"")
but apparently that is an issue. When I try to run the report that uses this query I get the message that Format([Date],""mm/dd"") is not allowed. The only thing is, I also have this installed on a PC at my office that only has Access 2002 Runtime on it, and it works fine. Should I change this query expression, or is this something to do with a missing .dll or something?

Thanks for any help you can provide.


-Pete
 
P.S. Its in double quotes because im executing the query in a VBA statement where the expression is somewhat like:
Code:
qdf.SQL = "Select Format([Date],""mm/dd"") As Date2........and so on"



-Pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top