Link to home
Start Free TrialLog in
Avatar of abrusko
abruskoFlag for United States of America

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(InsertString)

Can I code the .Execute as such:
rc = MySQLConn.Execute(InsertString)
and expect a RC to be returned?  If so, what should the data type of rc be?

Thanks!
Andy
ASKER CERTIFIED SOLUTION
Avatar of SStory
SStory
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of abrusko

ASKER

"SS",

Thanks for the info, this should help.

Just curious...what is returned in the recordset object on an Insert or Update SQL statement?

andy
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of abrusko

ASKER

Thanks for the info guys!