Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL passthrough (Inserting Problem)
Message
From
07/01/2003 20:31:58
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
SQL passthrough (Inserting Problem)
Miscellaneous
Thread ID:
00739146
Message ID:
00739146
Views:
70
Hi,

Im using SQLPassthrough to insert a new record in a .dbf table. The problem is that when I execute the sql syntax, it returns a positive value meaning that the inserting was successful. But when I try to browse for the new record, it was not inserted on the table. Any Idea? Here is an example on how my codes look like.

csql = [Insert into bcmi!players(cardno,]]+;
[queno)]+;
[values(]+;
str(var_cardno) +[,]+;
str(var_queno) +[)]

nResult = SQLEXEC(thisform.vconnstr,csql)


In my example, nResult acquired a value of 1 which means that the code was executed without errors. How come the new record is not on the players table?

Please Help...
Thanks in advance
Music Rocks www.musicreserve.blogspot.com
Success is 1% Inspiration & 99% Perspiration
God Sometimes Delays His Help to Test Our Faith and Energize Our Prayers
Our Boat May Be Tossed While He Sleeps, But He Wakes Up Before it Sinks.
Next
Reply
Map
View

Click here to load this message in the networking platform