Re: AutoInc in mdb
- From: "Del Murray" <Del.Murray@xxxxxxxxxxxxxx>
- Date: Wed, 19 Mar 2008 21:09:12 -0500
create a tadoquery and in it put .. select * from mytable where 1=2.
That will "initialize" a dummy recordset with no records in it when you open
the set.
when you append a record and fill in values the autoincrement field (gotten
with select *) will be updated to reflect the current value of the record
once it is posted in the db.
You can do this in batchoptimistec locking mode or optimistic locking mode.
The value will be populated from the database after you do "post" or
"updatebatch" .. i always use batch mode.
.
- References:
- AutoInc in mdb
- From: limelect
- Re: AutoInc in mdb
- From: Paul Scott
- Re: AutoInc in mdb
- From: limelect
- AutoInc in mdb
- Prev by Date: OLE error 800A0E7F
- Next by Date: Excel Reading Pb
- Previous by thread: Re: AutoInc in mdb
- Next by thread: OLE error 800A0E7F
- Index(es):