W
Widemonk
So that my mouse wheel does not keep adding blank record after blank record,
i have set the following:-
Allow Edits = Yes
Allow Deletions = Yes
Allow Additions = No
Then created a command button button:-
Private Sub cmdAdd_Click()
Me.AllowAdditions = True
DoCmd.GoToRecord , , acNewRec
Me.AllowAdditions = False
End Sub
In another form on the same database, it works OK however on this one, it
doesn't add a new record. The screen flickers slightly as if its trying but
then goes back to what WAS the last record, without adding a new one.
If I remove the 'Me.AllowAdditions = False' code but then add this:-
Private Sub Form_Current()
Me.AllowAdditions = False
End Sub
I get run-time error 2105 'Cant go to the specific record'
Anyone know whats going on ??
Thanks
i have set the following:-
Allow Edits = Yes
Allow Deletions = Yes
Allow Additions = No
Then created a command button button:-
Private Sub cmdAdd_Click()
Me.AllowAdditions = True
DoCmd.GoToRecord , , acNewRec
Me.AllowAdditions = False
End Sub
In another form on the same database, it works OK however on this one, it
doesn't add a new record. The screen flickers slightly as if its trying but
then goes back to what WAS the last record, without adding a new one.
If I remove the 'Me.AllowAdditions = False' code but then add this:-
Private Sub Form_Current()
Me.AllowAdditions = False
End Sub
I get run-time error 2105 'Cant go to the specific record'
Anyone know whats going on ??
Thanks