If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > ODBC date selection range in dbase

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-21-03, 16:29
danielg danielg is offline
Registered User
 
Join Date: Nov 2003
Posts: 1
ODBC date selection range in dbase

I am using ODBC/vb 6 to access a dbase system and need to do a date selection, but keep getting various errors including
- Data type mismatch in criteria expression
, Collating sequence not supported. I think it is to do with the date literal but haved tried all of the following.

the datefield is a date type

ConnectionString = "Driver={Microsoft dBASE Driver (*.dbf)};DriverID=277;Dbq=C:\\files\\dbase;"

datefield >= '01/12/2002' ..
datefield >= '2002-12-01' ...
datefield >= "01.12.2002' ...
and even ODBC escape sequence
datefield > = {d '2002-12-01'}

Any hint appreciated

PS regional settings are UK

Daniel
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On