Link to home
Start Free TrialLog in
Avatar of FirstBorn
FirstBornFlag for United States of America

asked on

Operator/operand type mismatch error

Using a FoxPro 6 Free Table, I keep getting the following error:
Operator/operand type mismatch error

below is sample code that generates the error.  I've had no previous problems working with (viewing, editing, updating, adding new, deleting, etc...) these tables before.

strSQL = "Select field1, default from FoxProTable where field1 = '" & Text1.Text & "' And default = 'True' " 

With rstSQL
    .CursorLocation = adUseClient
    .CursorType = adOpenKeyset
    .LockType = adLockOptimistic
    .Open strSQL, cnnCnxn, , , adCmdText  <------ Error Occurs Here!
End with

Thanks in Advance!

:)
ASKER CERTIFIED SOLUTION
Avatar of eslsys
eslsys

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of FirstBorn

ASKER

I'm New to using FoxPro Tables... The ONLY Thing I've Used FoxPro Tables for previously was to convert from dbf to SQL Server 7 or M$ Access...

This Did The Trick!

Thank You VERY VERY VERY MUCH!!!

:)

I've Upped this to 100 pts.  Thank You Again!

Avatar of eslsys
eslsys

Hi FirstBorn

not a problem, post a comment on here if you have any further VB/VFP questions with a link to the posted question and I'll have a look at it for you - I've been using both VB and VFP for 9+ years

thanks for the points