Strange problem
From: jason (jason_at_no-replies.com)
Date: 07/13/04
- Next message: Jeremy Collins: "Re: Strange problem"
- Previous message: Todd Jaspers: "ADO Performance / Optimize?"
- Next in thread: Jeremy Collins: "Re: Strange problem"
- Reply: Jeremy Collins: "Re: Strange problem"
- Reply: Brian Bushay TeamB: "Re: Strange problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 13 Jul 2004 06:23:55 -0700
Hi,
I am using Delphi 6 Enterprise (with the latest updates).
I am connected via a TADOTable to an access database table.
My table has approx. 150 records in it, with an autoincrementing
id-field, called ArchiveID as the primary key.
When I execute the following code:
if tblArchive.Active = false then
tblArchive.Open;
tblArchive.Last;
showmessage(tblArchive.fieldbyname('ArchiveID').asstring);
Now instead of getting a message showing '150' I am getting a message showing '94'. I checked in my table and I have sequencial records from 1 to 150.
Why when I call the last procedure does it not position itself on the last record in the table, in my case the record with an ArchiveID=150??
Many thanks for you help
- Next message: Jeremy Collins: "Re: Strange problem"
- Previous message: Todd Jaspers: "ADO Performance / Optimize?"
- Next in thread: Jeremy Collins: "Re: Strange problem"
- Reply: Jeremy Collins: "Re: Strange problem"
- Reply: Brian Bushay TeamB: "Re: Strange problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|