Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I cannot seem to do a SQL Select with a where clause
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00301982
Message ID:
00301993
Views:
19
>VFP 6.0
>
>SQLEexec(nHandle, [select ContHist.RecID from ContHist where (((ContHist.ResultCode)="EXP" .or. (ContHist.ResultCode)="BXP"))], 'ThisCursor')
>
>Anyone have any clue how to do this?
>
>TIA
>
>DJ :o)

There's no need for all the parens... this should work -

SQLEexec(nHandle, 'select ContHist.RecID from ContHist where ContHist.ResultCode="EXP" .or. ContHist.ResultCode="BXP"','thiscursor')


HTH
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown
Previous
Reply
Map
View

Click here to load this message in the networking platform