P
Philip
Dlast returns wrong record on autonumber field
I been "docmd.runsql insert into values ..
for over 18 months, and looking for the last recor
with Dlast("Id","tblStockIn") to record on the paper doc
Suddendly Dlast returns Auto number ID record no 615
6150 is not the end of the table
To correct this I have done the following:
deleted 6150, Dlast returns 614
cut and pasted tabl
Checked indexing, oops! there is an additional index on another field
removed this and run a make table query to make a new tabl
Dlast still returns 6150
I am not aware of any changes to the data or the program at the time of
this change of behaviour
Some time prior to the above access warned of a problem and gave th
Repair and Compact option, I choose yes for fear of being locked out of
a damaged database
Any suggestions on how to fix this pleas
Cheer
Phil
I been "docmd.runsql insert into values ..
for over 18 months, and looking for the last recor
with Dlast("Id","tblStockIn") to record on the paper doc
Suddendly Dlast returns Auto number ID record no 615
6150 is not the end of the table
To correct this I have done the following:
deleted 6150, Dlast returns 614
cut and pasted tabl
Checked indexing, oops! there is an additional index on another field
removed this and run a make table query to make a new tabl
Dlast still returns 6150
I am not aware of any changes to the data or the program at the time of
this change of behaviour
Some time prior to the above access warned of a problem and gave th
Repair and Compact option, I choose yes for fear of being locked out of
a damaged database
Any suggestions on how to fix this pleas
Cheer
Phil