help with microsoft ADO control/True DB Grid



Hi All:

I have a simple VB6 project that allows a user to simply read and
update data from a table that is in an Access 2003 database.

The form of my project has the ADO data control and a True DBGrid OLE
8.0 Control on it.

I've set the ADODC connection string to Driver={Microsoft Access
Driver (*.mdb)};Dbq=p:\drew\stormlog\storm2.mdb;Uid=Admin;Pwd=;

and I've set the recordsource to select * from stormlog

The grid has ADODC1 selected as its data source. The grid is loaded
fine and data is displayed and can be browsed thru.

In some cases, I can change data in a column and move off of the
record and its updated as one would expect.

The problem is that about 1 out of every 5 records can't be updated
via the grid. On those records, when I move off of the record after
changing a field's value, I get this error:

Row cannot be located for updating. Some values may have been changed
since it was last read.

The only value that has changed is the one I changed in the grid.
Although the database is on a network drive that I can read/write to,
no other network users have the database open, so its not a record
lock issue.

Again, most records can be updated but seems like about every fifth
one generates this error message.

I don't have any AutoNumber fields in the table. Its a pretty simple
table with 5 fields.

Any help is appreciated as I'm stumped!

Thanks
Drew

.



Relevant Pages

  • Re: help with microsoft ADO control/True DB Grid
    ... Do you have a Primary Key on the table? ... > update data from a table that is in an Access 2003 database. ... > The grid has ADODC1 selected as its data source. ... > I don't have any AutoNumber fields in the table. ...
    (microsoft.public.data.ado)
  • Re: Grids... simple, but I dont know...
    ... again and re-created the grid. ... The vehicle they enter on ... In the command window, open your database (but not your view, ... putting "myview" in the data environment, ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Grids... simple, but I dont know...
    ... had to be something fundamental in the grid setup... ... The vehicle they enter on the ... order of the fields I want, using MYVIEW as the table, and also to ... In the command window, open your database (but not your view, ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Grids... simple, but I dont know...
    ... That's all a grid is. ... Since your view works in the command window but not in your form, ... With vehicle 120, I should have 3 records worth of data. ... In the command window, open your database (but not your view, ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Grids... simple, but I dont know...
    ... I'm not sure where "the report" comes in, but we're talking about a grid on ... First formasks for vehicle number. ... In the command window, open your database. ... I created it putting "myview" ...
    (microsoft.public.fox.programmer.exchange)