Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sqlexec to try insert record on mysql database
Message
 
 
To
19/07/2005 21:45:31
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Database:
MySQL
Miscellaneous
Thread ID:
01034083
Message ID:
01034086
Views:
23
This message has been marked as a message which has helped to the initial question of the thread.
>The following statement is issued to insert a record on mysql database. If issue it on command window of VFP the record is inserted, but if issue it inside method of form the record is not inserted and retval returns -1.
>
>retval = SQLEXEC(lnHandle,'INSERT INTO fcdl.fatura (codigo, referencia) VALUES (' + m.codigo + "," + m.dtinvertida + ')')
>
>What is wrong?

You tell us. Use AERROR() to get ODBC error info.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform