Computing.Net > Forums > Programming > MySQL + VB

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

MySQL + VB

Reply to Message Icon

Name: Biz
Date: September 9, 2003 at 03:22:24 Pacific
OS: W2k
CPU/Ram: AMD 1700/256
Comment:

Up until recently I was using VB to as a front end to an Access database. I have since migrated the database to MySQL and thought all was fine. I can view the data and edit existing data no probs. My problem is that when I add to a recordset I get an error stating "Multiple steps generated errors. Check each status value" when I try to update the recordset.
I have checked the field properties and all seems fine.



Sponsored Link
Ads by Google

Response Number 1
Name: Chi Happens
Date: September 9, 2003 at 16:29:00 Pacific
Reply:

i've found that recordset updating is plagued with troubles, i use the execute method of the connection object instead.

For example:
SQL = "UPDATE ThisTable SET Field1='Data', Field2=15 WHERE RecordID=" & RecordID
If Not CN.Execute(SQL) Then
    MsgBox Err.Description, vbOkOnly, "Error Updateing Database"
End If

Chi Happens


0

Response Number 2
Name: Biz
Date: September 10, 2003 at 08:23:53 Pacific
Reply:

Thanks for the response Chi I will give this a bash.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Style Sheet Question Batch file for software a...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: MySQL + VB

vb and mysql or access www.computing.net/answers/programming/vb-and-mysql-or-access/2330.html

Using VB to get Online DB info www.computing.net/answers/programming/using-vb-to-get-online-db-info/1468.html

Password in connection string on VB www.computing.net/answers/programming/password-in-connection-string-on-vb/484.html