Re: Strange problem
From: Brian Bushay TeamB (BBushay_at_Nmpls.com)
Date: 07/14/04
- Next message: jason: "Re: Strange problem"
- Previous message: Brian Bushay TeamB: "Re: Row cannot be located for updating"
- In reply to: jason: "Strange problem"
- Next in thread: jason: "Re: Strange problem"
- Reply: jason: "Re: Strange problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 13 Jul 2004 20:58:07 -0500
On 13 Jul 2004 06:23:55 -0700, "jason" <jason@no-replies.com> wrote:
>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??
If you are using a TadoTable set the Indexname to the index of your Primary key
field to order by that field
-- Brian Bushay (TeamB) Bbushay@NMPLS.com
- Next message: jason: "Re: Strange problem"
- Previous message: Brian Bushay TeamB: "Re: Row cannot be located for updating"
- In reply to: jason: "Strange problem"
- Next in thread: jason: "Re: Strange problem"
- Reply: jason: "Re: Strange problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|