W
Warren Siu
My form set Allowadditions to False and also do it on Current event to
prevent adding record in an uncontrollable way. Users have to use the Add New
buttom to add new record. My code is
Private Sub add_Click()
Me.AllowAdditions = True
Me.Refresh
DoCmd.GoToRecord , , acNewRec
Me![TI Ref] = DMax("[TI Ref]+1", "Inspection Record")
End Sub
But error "2105", "You can't go to the specified record" appear.
Why and how to get around?
Thanks
prevent adding record in an uncontrollable way. Users have to use the Add New
buttom to add new record. My code is
Private Sub add_Click()
Me.AllowAdditions = True
Me.Refresh
DoCmd.GoToRecord , , acNewRec
Me![TI Ref] = DMax("[TI Ref]+1", "Inspection Record")
End Sub
But error "2105", "You can't go to the specified record" appear.
Why and how to get around?
Thanks