1 message in com.mysql.lists.win32Refresh after Update in VB?
FromSent OnAttachments
John...@bench.com25 Mar 2004 11:34 
Subject:Refresh after Update in VB?
From:John...@bench.com (John@bench.com)
Date:03/25/2004 11:34:40 AM
List:com.mysql.lists.win32

Hello,

I'm working on a simple prototype of a grid displaying data from a table in
mySQL using ADO.

So far I'm doing pretty good, I can connect to the DB, create tables, retrieve
data, and update data and display it all in an MS FlexGrid control.

I'm having a problem when I update twice in a row. I'm trying to update the
same row and field twice in a row just to test it and I get an error saying it
cannot find the same record on the second update. But, if I refresh my data
after each update, I dont get the error.

There is one more thing I should mention, to keep the grid and recordset in
sync, I manually position to the record I want to update, based on the grid row
number. (ie: MoveFirst, then loop on MoveNext (grid row times)) I do this
because I cannot use ADO's AbsolutePosition property with mySQL.

Is there a better way I dont know about to keep a grid and recordset in sync?

Thanks in advance

-John C.