HI,
I have a table with a field as autonumber and is a primary key.
But some of the records were deleted due to some reasons.
If I try to insert data into it, I want to know what will be the autonumber for the record to be inserted.
This code is not working
DMax("resourcemasterid", "resourcemaster")
The above code is verymuch giving me the max(resourcemasterid)+1.
But If I delete last 2 records I'm not getting the right number.
Please help.
Regards
RK Veluvali
I have a table with a field as autonumber and is a primary key.
But some of the records were deleted due to some reasons.
If I try to insert data into it, I want to know what will be the autonumber for the record to be inserted.
This code is not working
DMax("resourcemasterid", "resourcemaster")
The above code is verymuch giving me the max(resourcemasterid)+1.
But If I delete last 2 records I'm not getting the right number.
Please help.
Regards
RK Veluvali