randolphoralph
Registered User.
- Local time
- Today, 08:48
- Joined
- Aug 4, 2008
- Messages
- 101
On my main form I have the Form On Current event set to Me.AllowAdditions = False to prevent new records from being added when users use the scroll button on the mouse.
In order to add a new record users have to click on a command button.
The database has been running smoothly for about a month now, and starting last week users started getting a error message...Run-time error '2105': You can't go to the specified record. This happens when the users click the command button to add a new record.
When I click on Debug it points to DoCmd.GoToRecord acActiveDataObject, , acNewRec
The complete code is
In order to add a new record users have to click on a command button.
The database has been running smoothly for about a month now, and starting last week users started getting a error message...Run-time error '2105': You can't go to the specified record. This happens when the users click the command button to add a new record.
When I click on Debug it points to DoCmd.GoToRecord acActiveDataObject, , acNewRec
The complete code is
Code:
Private Sub AddNewCommandButton_Click()
Me.AllowAdditions = True
DoCmd.GoToRecord acActiveDataObject, , acNewRec
End Sub