mloucel
Member
- Local time
- Today, 04:24
- Joined
- Aug 5, 2020
- Messages
- 263
Hello Gurus..
SORRY NEVER MIND I FOUND MY STUPID ERROR PLEASE IGNORE
I have been working on a form that believe it or not the Navigation buttons are pretty much a match made in heaven for the form, BUT... there is a point on the execution of the code that I NEED the navigation buttons to simply be turned off..
I have tried the following code:
and of course immediately after my procedure is done successfuly I turn that "True" but it doesn't work
here is the full code:
ANY help will be greatly appreciated..
Maurice.
SORRY NEVER MIND I FOUND MY STUPID ERROR PLEASE IGNORE
I have been working on a form that believe it or not the Navigation buttons are pretty much a match made in heaven for the form, BUT... there is a point on the execution of the code that I NEED the navigation buttons to simply be turned off..
I have tried the following code:
Code:
Me.NavigationButtons = False
and of course immediately after my procedure is done successfuly I turn that "True" but it doesn't work
here is the full code:
Code:
Private Sub btnNew_Click()
NR = True 'New Record Pointer
UseButton = True 'Displays the Cancel Button
CancelBtn.Visible = True
Me.NavigationButtons = False ' This code is NOT working
DoCmd.GoToRecord acDataForm, Me.Name, acNewRec
' There is a procedure that stops the next line to be executed
' if the user does not fill ALL the requiered fields.
' Once that is done the subform is displayed
Me.PatientNotesSF.Form.Visible = False
UseButton = False
Me.NavigationButtons = True
End Sub
ANY help will be greatly appreciated..
Maurice.
Last edited: