M
Mesa
Hello everyone, this is my problem. I have a combobox that has names
of people in my records. I can select any name and it will load the
related record in my form.
I want to be able to click on a button and load a different form but be
on the same record. I can do this with the wizard but I cannot scroll
other records. How can I code this and still view other records.
Private Sub Personnel_Button_Click()
On Error GoTo Err_Personnel_Button_Click
Dim stDocName As String
Dim stLinkCriteria As String
DoCmd.Close
stDocName = "Personnel"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Personnel_Button_Click:
Exit Sub
Err_Personnel_Button_Click:
MsgBox Err.Description
Resume Exit_Personnel_Button_Click
End Sub
Currently I have it coded to close the previous form and open a form
"Personnel" in its place. Thanks for the help.
of people in my records. I can select any name and it will load the
related record in my form.
I want to be able to click on a button and load a different form but be
on the same record. I can do this with the wizard but I cannot scroll
other records. How can I code this and still view other records.
Private Sub Personnel_Button_Click()
On Error GoTo Err_Personnel_Button_Click
Dim stDocName As String
Dim stLinkCriteria As String
DoCmd.Close
stDocName = "Personnel"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Personnel_Button_Click:
Exit Sub
Err_Personnel_Button_Click:
MsgBox Err.Description
Resume Exit_Personnel_Button_Click
End Sub
Currently I have it coded to close the previous form and open a form
"Personnel" in its place. Thanks for the help.