Home > Back-end >  Can you insert a custom value in an Auto-incrementing field in MS Access
Can you insert a custom value in an Auto-incrementing field in MS Access

Time:04-06

The column auto-increments. User wants to insert a row with a specific number (I've confirmed it doesn't already exist in the column). In SQL Server I'd do a quick SET IDENTITY_INSERT ON and insert statement. Is there a way to this for Microsoft Access or are they just out of luck.

CodePudding user response:

Can run an INSERT action SQL.

But then need to Compact & Repair to reset the autonumber seed.

I can only guess this autonumber is used as a sequential number that must be accounted for, as in a license number series. Otherwise, sequence gaps should not be a concern and can be ignored.

  • Related