G
Guest
Hi ppl,
I have the following coding:
Set tblLot = CurrentDb.OpenRecordset("Lot")
tblLot.Index = "LotNumber"
tblLot.Seek "=", LotTxt
When the program runs, the following error msg will pop out:
'LotNumber' is not an index in this table
But the fact is, Lotnumber is an index in the "Lot" table. Can check the
index property when we enter design view. Setting of the 'Indexed" = Yes
(Duplication OK)
Pls advise. All helps are appreciated deeply. Thank you
I have the following coding:
Set tblLot = CurrentDb.OpenRecordset("Lot")
tblLot.Index = "LotNumber"
tblLot.Seek "=", LotTxt
When the program runs, the following error msg will pop out:
'LotNumber' is not an index in this table
But the fact is, Lotnumber is an index in the "Lot" table. Can check the
index property when we enter design view. Setting of the 'Indexed" = Yes
(Duplication OK)
Pls advise. All helps are appreciated deeply. Thank you