I have the following forms :
frmFrontEnd
frmEmployees
frmInternalAudits
frmSOPs
In the on click event I want to: for example on clicking the button on my frmFrontEnd form to open my frmEmployees form, that on the frmEmployees form opening the frmFrontEnd form closes.
I tried this but it kept on producing an error message
I got the above code from an old database that I created many years ago and I still a copy of that database and that code is still working, so I'm somewhat confused as to why it's not working in the current version of Access [365].
Any assistance would be greatly appreciated.
frmFrontEnd
frmEmployees
frmInternalAudits
frmSOPs
In the on click event I want to: for example on clicking the button on my frmFrontEnd form to open my frmEmployees form, that on the frmEmployees form opening the frmFrontEnd form closes.
I tried this but it kept on producing an error message
Code:
Private Sub cmdOpenfrmFrontEnd_Click
On Error GoTo Err_cmdOpenfrmFrontEnd_Click
Dim stDocName As String
Dim stLinkCriteria as String
stDocName = "frmFrontEnd"
DoCmd.OpenForm stDocName,,, stLinkCriteria
DoCmd.Close acForm, Me.Name, acSaveNo
Exit_cmdOpenFrontEnd_Click
Exit Sub
Err_cmdOpenFrontEnd_Click
Msgbox Err.Description
Resume Exit_cmdOpenFrontEnd_Click
End Sub
I got the above code from an old database that I created many years ago and I still a copy of that database and that code is still working, so I'm somewhat confused as to why it's not working in the current version of Access [365].
Any assistance would be greatly appreciated.
Last edited by a moderator: