G
Guest
I want to return a sort time from an SQL stored date via a pass through query. I want this to sort a daily schedule report by appointment start time. In Access I use the query ApptSortStart: Format$([START_TIME],"hhnn") and sort on "hhnn". But I haven't figured out how to do this with SQL. The only way I figured was to return DATEPART(hour, mytime) and DATEPART(minute, mytime) and use two sort criteria in the report, top one for hour and second for minute. However, I am wondering if there is a way to directly return the "hhnn" as a string from the SQL stored date using a SELECT statement in my pass through query.