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 > PC based Database Applications > Other PC Databases > dBase III ODBC error 3075

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-26-06, 17:28
brouse brouse is offline
Registered User
 
Join Date: Dec 2004
Posts: 3
dBase III ODBC error 3075

I am writing a program to convert a dBase III system to MS SQL-Server. I am using VB6 and ODBC DSNs to connect to the two systems. The following command works with the SQL-Server system, but not with the DBase III system:

Code:
Select count(Distinct VENDOR) from Vendors
I get the dreaded "Syntax Error (missing operator) in query expression 'count(Distinct VENDOR)'. Number 3075" error when running this command against the dBase III table.

If I change the command to "Select Distinct VENDOR from Vendors" it works, but the recordset shows "-1" for the recordcount value, and I want to include a percentage bar to show progress (hence, the need for a record count).

Any ideas?

Thanks...
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