Locate!
From: Atmapuri (janez.makovsek_at_usa.net)
Date: 01/21/04
- Next message: Pascal Schmidt-Volkmar: "inserting values from same table"
- Previous message: Julijan Rados: "ADO - Invalid Column name"
- Next in thread: Mike Collier: "Re: Locate!"
- Reply: Mike Collier: "Re: Locate!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 21 Jan 2004 12:27:07 +0100
Hi!
I am using the Locate command to find a record.
When I add a new record to the table like this:
TAdoTable.Append;
...
TAdoTable.Post;
The Locate command raises an exception when called after post:
"Row cannot be located for updating, Some values may have changed."
The only way I found to get around this is to call
TAdoTable.Refresh;
before I call the Locate method. But Refresh operation is increadibly slow.
Is there a better way to do this?
Thanks!
Atmapuri.
- Next message: Pascal Schmidt-Volkmar: "inserting values from same table"
- Previous message: Julijan Rados: "ADO - Invalid Column name"
- Next in thread: Mike Collier: "Re: Locate!"
- Reply: Mike Collier: "Re: Locate!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|