Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange SPT behavior
Message
From
08/02/2000 16:24:18
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00328907
Message ID:
00329169
Views:
22
Believe it or not, that was it. Unbalanced with that parenthesis. I looked at that damn command for hours and didn't see it. Sometimes extra sets of eyes and brains helps a lot.

Thanks, man, I owe you one!


>Is this a retype or cut/paste. The INSERT is not formed correctly.
>
>
>>nGoodInsert=SQLEXEC(nCH3,"INSERT INTO action clientid,program_id,actnsk) VALUES
>>(&cClientid,'&cProgram_ID','&cActnSK'")
>
>
>Should be
>
>
>>nGoodInsert=SQLEXEC(nCH3,"INSERT INTO (action clientid,program_id,actnsk) VALUES
>>(&cClientid,'&cProgram_ID','&cActnSK')")
>
>
>And you might try using parameters instead of the macro expansion:
>
>
>>nGoodInsert=SQLEXEC(nCH3, "INSERT INTO (action clientid,program_id,actnsk) VALUES (?cClientid, ?cProgram_ID, ?cActnSK)")
>
>
>-Mike
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform