abrusko
asked on
Does ADO return a Return Code from .Execute
Hi,
I am inserting rows into a MySQL DB from VB6 using ADO and was wondering if the .Execute method returns a Return Code after execution. Here are my code snippets:
Dim MySQLConn As New ADODB.Connection
wTestName = txtTestName.Text
InsertString = "Insert into ProductCert.tests (test_name) value ('" & wTestName & "')"
MySQLConn.Execute(InsertSt ring)
Can I code the .Execute as such:
rc = MySQLConn.Execute(InsertSt ring)
and expect a RC to be returned? If so, what should the data type of rc be?
Thanks!
Andy
I am inserting rows into a MySQL DB from VB6 using ADO and was wondering if the .Execute method returns a Return Code after execution. Here are my code snippets:
Dim MySQLConn As New ADODB.Connection
wTestName = txtTestName.Text
InsertString = "Insert into ProductCert.tests (test_name) value ('" & wTestName & "')"
MySQLConn.Execute(InsertSt
Can I code the .Execute as such:
rc = MySQLConn.Execute(InsertSt
and expect a RC to be returned? If so, what should the data type of rc be?
Thanks!
Andy
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the info guys!
ASKER
Thanks for the info, this should help.
Just curious...what is returned in the recordset object on an Insert or Update SQL statement?
andy