Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OpenRecordSet() and VFP 3.0 tables
Message
From
18/08/1998 13:41:31
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
 
 
To
All
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Title:
OpenRecordSet() and VFP 3.0 tables
Miscellaneous
Thread ID:
00127807
Message ID:
00127807
Views:
57
I am using a VFP 3.0 free table. The following examples works fine when the field in the WHERE clause does not have a index tag on that field.

If the field in the WHERE clause does have a index tag, then the second command immediatley returns a 3219 invalid operation error message.

'********
Set db = OpenDatabase("d:\apps\web\data", _
False, False, _
"FoxPro 3.0")
Set l_tb = db.OpenRecordset("Select " _
& "pt_part, pt_desc, pt_product, pt_drawng " _
& "from depart where pt_part = '440' ", dbOpenSnapshot)
'********

Has anybody seen this before? I am using DAO 3.5. If I remove the index tag from the VFP table, then I can use the WHERE clause on any field. Otherwise, I can only use the where clause on non-index fields.

Thanks,

Jerryt
Reply
Map
View

Click here to load this message in the networking platform