Re: ADO autInc
From: Mike Shkolnik (mshkolnik2002_at_ukr.net)
Date: 12/10/03
- Next message: Mónica García Ruiz: "function DaysInMonth (const Dias_Mes: TDateTime):word;"
- Previous message: Kevin Frevert: "Re: REAL BUG"
- In reply to: Tomas Rutkauskas: "ADO autInc"
- Next in thread: George Christoforakis: "Re: ADO autInc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 10 Dec 2003 13:16:20 +0200
Tomas,
MS Access will generate this autoinc value only after real post. So you
can't get it in OnNewRecord event
-- With best regards, Mike Shkolnik EMail: mshkolnik@scalabium.com http://www.scalabium.com "Tomas Rutkauskas" <tomasr@mail.lt> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ: news:3fd6fd7d@newsgroups.borland.com... > Hello, > > How to read AutoNumber field value when ADO Dataset become in insert mode? > I always get null. It seems that AutoNumber is generated after post. > Is it possible to read Autonumber in insert mode? > > p.s. I am using Access 2002, D7. Autonumber is the field in Access db. > > Regards, > Tomas > >
- Next message: Mónica García Ruiz: "function DaysInMonth (const Dias_Mes: TDateTime):word;"
- Previous message: Kevin Frevert: "Re: REAL BUG"
- In reply to: Tomas Rutkauskas: "ADO autInc"
- Next in thread: George Christoforakis: "Re: ADO autInc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|