hello guys,
i have a form that is bound to a table
am let the form go to the last record then showing a message to let the client now the number of the last file saved then push the form to go to a new record so the client continue saving new files
this is what am getting when the form load
Run-time error '2105'
You Can't go to the specified record
and when i debug am going to this line
any help ?
i have a form that is bound to a table
am let the form go to the last record then showing a message to let the client now the number of the last file saved then push the form to go to a new record so the client continue saving new files
Code:
Private Sub Form_Load()
DoCmd.GoToRecord , , acLast
MsgBox ("the last Saved File Was Number " & Me.txt_Record_Number)
DoCmd.GoToRecord , , acNewRec
End Sub
Run-time error '2105'
You Can't go to the specified record
and when i debug am going to this line
Code:
DoCmd.GoToRecord , , acNewRec