M
Mary A Perez
Below is the current command button code which basically opens all forms
within frmContractRates--Specifications
This command button is clicked after the user chooses a specific Contract
Name and Contract Rate Sheet Name from cmbContractName drop down and
cmbContractRateSheetName drop down respectfully.
How do I code the event procedure so that when the specific Contract Name
and Contract Rate Sheet Name are chosen only the specified form opens in the
frmContractRates--Specifications form?
Thank you for your help.
Private Sub cmdClickforContractInformation1_Click()
On Error GoTo Err_cmdClickforContractInformation1_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmContractRates-Specifications"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_cmdClickforContractInformation1_Cli:
Exit Sub
Err_cmdClickforContractInformation1_Click:
MsgBox Err.Description
Resume Exit_cmdClickforContractInformation1_Cli
End Sub
within frmContractRates--Specifications
This command button is clicked after the user chooses a specific Contract
Name and Contract Rate Sheet Name from cmbContractName drop down and
cmbContractRateSheetName drop down respectfully.
How do I code the event procedure so that when the specific Contract Name
and Contract Rate Sheet Name are chosen only the specified form opens in the
frmContractRates--Specifications form?
Thank you for your help.
Private Sub cmdClickforContractInformation1_Click()
On Error GoTo Err_cmdClickforContractInformation1_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmContractRates-Specifications"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_cmdClickforContractInformation1_Cli:
Exit Sub
Err_cmdClickforContractInformation1_Click:
MsgBox Err.Description
Resume Exit_cmdClickforContractInformation1_Cli
End Sub