G
Guest
I really don't know what was wrong. Need help...
I added an autonumber field to an existing table. this fieldname is ID. I
set its property to index =yes (no duplicate). Now my problem is when I open
this table to find a specific record using "Index=ID" ,I got error 3800. I
run the same code for other tables (those table already had autonumber field
as index), it works. Here is the code...
dim lngId as long
dim rst as dao.recordset
set rst=currentdb.openrecordset ("tablename",dbopentable)
rst.index="ID"
rst.seek=lngId
Thanks.
--
I added an autonumber field to an existing table. this fieldname is ID. I
set its property to index =yes (no duplicate). Now my problem is when I open
this table to find a specific record using "Index=ID" ,I got error 3800. I
run the same code for other tables (those table already had autonumber field
as index), it works. Here is the code...
dim lngId as long
dim rst as dao.recordset
set rst=currentdb.openrecordset ("tablename",dbopentable)
rst.index="ID"
rst.seek=lngId
Thanks.
--