Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connecting to an Access Database
Message
From
16/04/2003 11:12:17
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
16/04/2003 10:02:23
Sony Joseph
Dovenmuehle Mortgage Inc
Schaumburg, Illinois, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00778022
Message ID:
00778368
Views:
21
>Your solution seemed simpled and elegant. However, when I use this snippet, I don't get results back from the SQL Statement. There is no Error either.
>
>Any clues..?
>
>TIA

With SQLExec (except some specific ones) you don't get any immediate error. Check return valuye, if it's lt 0 then check for error. ie:
if SQLExec(lnHandle, lcSQL, lcResultCursorName ) < 0
  CheckError(lcSQL)
*...

Function CheckError
Lparameters tcSQL
local ix,lcError
local array arrCheck
lcError=tcSQL+chr(13)
Aerror(arrCheck)
For ix=1 to 7
  lcError = lcError+trans( arrCheck [ix])+ chr(13)
Endfor
Messagebox(lcError,0,'Error def.')
return
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform