Thread: DatePart
View Single Post
  #2  
Old June 4th, 2010, 07:31 PM posted to microsoft.public.access.queries
Keith
external usenet poster
 
Posts: 531
Default DatePart

I'm trying to convert "mm/dd/yyyy hh:nn:ss" date format to just time using
DatePart function.

I've used DatePart("hh:nn",[TimeIn]) and it returns "Error".

I've used TEMP: DatePart("h",[TimeIn]) & ":" & DatePart("n",[TimeIn]) and it
returns the time; however, I can't compare the result to other time since it
returns the results in text format.

Any suggestions?


Keith