Hi,
This problem is driving me absolutely crazy!!!
NOTE - THESE ARE UK DATE FORMATS
I have an SQLite database column (type = text) which contains the following dates: 25/12/2014 (25th December 2014) 27/12/2014 (27th December 2014) 26/11/2014 (26th December 2014)
Due to SQLite having no Date type, I am having to use TEXT as the column type.
Could someone please tell me what I need to do in order to make these appear with the newest date at the top - like this:
27/12/2014 (27th December 2014) 25/12/2014 (25th December 2014) 26/11/2014 (26th December 2014)
I cannot work out what I need to do to the text string containing the date, in order to make the columns display in the correct order when I use ORDER BY Date Desc.
Change your date format to SQLDate in your calendar output.
If you don’t want to use a SQL Statement to convert your SQLDate into the your format then use this function in between your database and your Listbox Population
Database Select into a Record Set–> this function --> Your listbox population
Private Function(inSQLDate as String) as String
// THIS FUNCTION CONVERTS THE SQLDATE INPUT TO THE D/M/Y FORMAT
Dim convertedDate as String