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!

format expression field in query as a date 1

Status
Not open for further replies.

Lost500

IS-IT--Management
Joined
Mar 10, 2009
Messages
110
Location
US
I have a expression in a query Nz([fieldname],[fieldname]). it runs fine but the results in that field are not formated as a date. (both fields are dates themselves) how can i tell access to format the results as a date field? any help would be great!
 
So im trying stuff like Format(Nz([fieldname],[fieldname]), "mm/dd/yyyy" the query runs but when i try to sort the field it doesn't pick it up as a date. ultimatley i want to be able to sort by date. any advice??
 
Thanks dhookom!! CDate() worked great though i cant have any null values!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top