I am working on someone elses database. The table has a Date and Time field as Text.
They are using the following which is not working when it comes to order by, because of the fact they built the table with wrong data type. That being said here is the order by code and I am haveing problems using CDate with which I think should work one way or another.
Orig Code
This is what I would like to try to do.
This code is located in the Property of the form used to search, in the guery build area of the Record Source.
I have read lots othe the posts on here and tried to emulate, but really would just like to understand how to get this text field to sort as needed, and understand it.
Thank you
Ken
They are using the following which is not working when it comes to order by, because of the fact they built the table with wrong data type. That being said here is the order by code and I am haveing problems using CDate with which I think should work one way or another.
Orig Code
Code:
ORDER BY test03.[Last Name], test03.[First Name],test03.Date, test03.Time;
Code:
ORDER BY test03.[Last Name], test03.[First Name],CDate(test03.Date), test03.Time;
I have read lots othe the posts on here and tried to emulate, but really would just like to understand how to get this text field to sort as needed, and understand it.
Thank you
Ken
Comment