Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADO from VB to query FoxPro tables
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
ADO from VB to query FoxPro tables
Miscellaneous
Thread ID:
00181924
Message ID:
00181924
Views:
41
I am using VB 6.0 SP2 and VFP ODBC driver 6.00.816700 (16/06/98) to access FoxPro 2.6 tables. The following query returns one record

SELECT * FROM MainCase WHERE Office + CaseNo = "198-00001"

The following query returns no records:

SELECT * FROM MainCase WHERE Office + CaseNo = "198-0000"

The only difference is the case number is truncated. This should return 9 records from the table. I thought maybe SET EXACT was ON, but when I added SET("Exact") as a column to the first SELECT statement it returned false.

When I copy the second SELECT statement into the VFP Command Window it works just fine. Any ideas?

Thanks!
Next
Reply
Map
View

Click here to load this message in the networking platform