Hi
I would like to produce navigation buttons so that when I click for example "back" button I can naviagte from Form1 to the main menu.
I have currently experimented with some code ( am not a programmer )
and edited a Open Form button to include this code "doCmd.Close. The code in total looks like this:
Private Sub Command6_Click()
On Error GoTo Err_Command6_Click
DoCmd.Close
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "User Form"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command6_Click:
Exit Sub
Err_Command6_Click:
MsgBox Err.Description
Resume Exit_Command6_Click
End Sub
However, it is not a smooth navigation between forms, as it closes one form and opens another form.
any better ideas?
I would like to produce navigation buttons so that when I click for example "back" button I can naviagte from Form1 to the main menu.
I have currently experimented with some code ( am not a programmer )
and edited a Open Form button to include this code "doCmd.Close. The code in total looks like this:
Private Sub Command6_Click()
On Error GoTo Err_Command6_Click
DoCmd.Close
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "User Form"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command6_Click:
Exit Sub
Err_Command6_Click:
MsgBox Err.Description
Resume Exit_Command6_Click
End Sub
However, it is not a smooth navigation between forms, as it closes one form and opens another form.
any better ideas?