G
Guest
I’m working on a form that will add a new record and will assign a new ID
number to the primary key. I’m using a sql insert into and that work fine,
but when I use a go to last record it’s not the same, why?
strSQL = "INSERT INTO tblEquipment ( EquipmentID ) " & _
"SELECT Last([EquipmentID]+1) " & _
"FROM tblEquipment;"
DoCmd.RunSQL strSQL
DoCmd.GoToRecord , , acLast
Any ideas on this
number to the primary key. I’m using a sql insert into and that work fine,
but when I use a go to last record it’s not the same, why?
strSQL = "INSERT INTO tblEquipment ( EquipmentID ) " & _
"SELECT Last([EquipmentID]+1) " & _
"FROM tblEquipment;"
DoCmd.RunSQL strSQL
DoCmd.GoToRecord , , acLast
Any ideas on this