I have a query that I want to take another date field (Order_Overall_Start_Date) and create a new field (DisplayStart) formatting it as a Date field with the "mm/dd/yy" formatting (the current formatting is dd-Jan-yy). Here is the string in the query:
DisplayStart: IIf([Order_Overall_Start_Date]<Date()," ",Format([Order_Overall_Start_Date],"mm/dd/yy"))
The problem is that it doesn't sort it correctly. It sorts based on the first number "mm" then "dd" then "yy". So 12/01/04 will come after 01/01/05. It's like its looking at the field as a text field and not a date field.
DisplayStart: IIf([Order_Overall_Start_Date]<Date()," ",Format([Order_Overall_Start_Date],"mm/dd/yy"))
The problem is that it doesn't sort it correctly. It sorts based on the first number "mm" then "dd" then "yy". So 12/01/04 will come after 01/01/05. It's like its looking at the field as a text field and not a date field.