If you are able to delete the relations and no other tables rely on the ID you can use the following code to reset the ID.
Sub specificRecord()
Dim db As Database
Set db = CurrentDb
'Export/Copy data in another table
Dim sSQL As String
sSQL = "SELECT * INTO tblCopy FROM tblSource;" ' Make sure tblCopy does not exist otherwise you get an error
db.Execute sSQL
'Delete data in source table
sSQL = "DELETE * FROM tblSource"
db.Execute sSQL
'Reset ID to 1 (Modify the ID field accordingly!)
sSQL = "ALTER TABLE tblSource ALTER COLUMN ID COUNTER(1,1);"
db.Execute sSQL
' Import specific record into table
' You need to modify this step you as I do not know the field names
' And you have to leave out the ID field
' INSERT INTO table_name (column1, column2, column3, ...)
' VALUES (value1, value2, value3, ...);
sSQL = "INSERT INTO tblSource (Test,Datum) VALUES ('xxx','01.05.2022');"
db.Execute sSQL
' Import/Copy data from backup table to source table
' INSERT INTO tblSource column1, column1, column3, ...)
' SELECT tblCopy.column1, tblCopy.column1
' FROM tblCopy;
' see above, again leave out the ID field
sSQL = "INSERT INTO tblSource (Test, Datum) SELECT tblCopy.Test, tblCopy.Datum FROM tblCopy;"
db.Execute sSQL
' Application.RefreshDatabaseWindow
End Sub
Use at your own risk and make a backup of your database before running this code, just to be on the safe side.
If your autonumber has a meaning then you will get into trouble sooner or later.
Further reading. There you also find a description how to proceed in case you have related records in other tables
Update: Gord Thompson's approach is the better one in this case. The only step remaing in that appaoach is to reset the AutoID field to the correct one otherwise the access engine will use 2 as the next automatically determined AutoId. The following code will do this
Sub resetMaxID()
Dim db As Database
Dim rs As Recordset
Dim sSQL As String
Set db = CurrentDb
sSQL = "SELECT MAX(ID) FROM tblSource"
Set rs = db.OpenRecordset(sSQL)
Dim maxID As Long
maxID = rs.Fields(0).Value ' This is the max AutoId
rs.Close
'Reset ID to maxId +1
sSQL = "ALTER TABLE tblSource ALTER COLUMN ID COUNTER(" & maxID + 1 & ",1);"
db.Execute sSQL
End Sub