![]() |
| |||||||
| Sponsored Links |
![]() | « Previous Thread | Next Thread » |
| | LinkBack | Thread Tools | Display Modes |
|
#1
| |||
| |||
| Hi, I am using access database and I have a table called Employees There is a field called Emp_Date the datatype is Text for example the Emp_Date is like this 09/12/2007 I Have my query like this Code: strgetrecords = "SELECT * from Employees order by convert(datetime, Employees.Emp_Date) desc" it gives an error can someone tell me If i am doing the conversion in the right way todd |
| Sponsored Links |
|
#2
| |||
| |||
| it gives an error saying undefined function convert in expression |
|
#3
| ||||
| ||||
| Quote:
BY FAR, the best solution is to always store date information in Date data type fields. If this cannot be done in your situation, then you can use a legitimate Access function like CDate(). |
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| access problem | todd2006 | SQL Development | 7 | August 4th, 2008 09:17 PM |
| access problem | todd2006 | Microsoft Access | 4 | July 30th, 2008 11:38 AM |
| another access problem | todd2006 | ASP Development | 5 | July 30th, 2008 11:09 AM |
| date problem | todd2006 | SQL Development | 2 | July 7th, 2008 01:52 PM |
| date problem | todd2006 | SQL Development | 1 | May 12th, 2008 01:51 PM |