G
Guest
I have a form that I open with a button. The button Event Procedure is:
Private Sub cmdGOrpt_Click()
On Error GoTo Err_cmdGOrpt_Click
Dim stDocName As String
DoCmd.OpenForm "frmQueryFGProcessingFacIDsLineIDs"
Forms!frmQueryFGProcessingFacIDsLineIDs!cbNavigateProfiles = _
Forms!frmFinishedGoods!cbProfileID
DoCmd.OpenForm Me!cbSelectReportRQ, acNormal
Exit_cmdGOrpt_Click:
Exit Sub
Err_cmdGOrpt_Click:
MsgBox Err.Description
Resume Exit_cmdGOrpt_Click
End Sub
This works but I need to change things. I now need the button to open the
form as well as others that will be queried in the combo box:
cbSelectReportRQ
How can I code the button to open up forms as well as open the above form to
the desired record?
WHEW!
Thanks!
Private Sub cmdGOrpt_Click()
On Error GoTo Err_cmdGOrpt_Click
Dim stDocName As String
DoCmd.OpenForm "frmQueryFGProcessingFacIDsLineIDs"
Forms!frmQueryFGProcessingFacIDsLineIDs!cbNavigateProfiles = _
Forms!frmFinishedGoods!cbProfileID
DoCmd.OpenForm Me!cbSelectReportRQ, acNormal
Exit_cmdGOrpt_Click:
Exit Sub
Err_cmdGOrpt_Click:
MsgBox Err.Description
Resume Exit_cmdGOrpt_Click
End Sub
This works but I need to change things. I now need the button to open the
form as well as others that will be queried in the combo box:
cbSelectReportRQ
How can I code the button to open up forms as well as open the above form to
the desired record?
WHEW!
Thanks!