If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Problem updating a recordset

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-24-04, 03:32
jsandin jsandin is offline
Registered User
 
Join Date: Feb 2004
Posts: 2
Unhappy Problem updating a recordset

I have a problem when i try to update a recorset in visual basic using myvbql.dll.
Well, when i make a select from a table only, i can move my recordset, update, etc... perfectly.
Sample: "SELECT * FROM obras WHERE idobras=1"

But when i try to make a select with 2 or more fields, the consult works perfect: i can move, show all records, etc...
But when i try modify some record, and update it, i get an error message and the recordset DON'T update.
I do something like this:
"SELECT idobras, nombre, cliente FROM obras WHERE idobras=1"

I show it in a form
.......
When something is modified, i do:

MyRS.Fields("nombre").Value = Me.txtnommaq1.Text
MyRS.Fields("cliente").Value = Me.txtnommaq2.Text
.......
If (MyRS.Update < 1) Then MsgBox "I can't save your changes."

And i can't save the modifications made.

With last libmysql.dll i get and error message something like this:

"You can't update calculated fields ..."

Please, someone can HELP me?

Thank you.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On