M
mattc66 via AccessMonster.com
I have the below code that I wanted to pass the value from From frmNavigation.
SalesPersSelect to frmQuotes.Salesperson when the user click the
cmdCreateQuote button. I get a message that says data member not found. Can
anyone help?
Thanks
Private Sub cmdCreateQuote_Click()
On Error GoTo Err_cmdCreateQuote_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmQuotes"
DoCmd.OpenForm stDocName, , , stLinkCriteria, acFormAdd
Forms!frmNavigation.cboSalesPersSelect = Me.Salesperson
Exit_cmdCreateQuote_Click:
Exit Sub
Err_cmdCreateQuote_Click:
msgbox Err.Description
Resume Exit_cmdCreateQuote_Click
End Sub
SalesPersSelect to frmQuotes.Salesperson when the user click the
cmdCreateQuote button. I get a message that says data member not found. Can
anyone help?
Thanks
Private Sub cmdCreateQuote_Click()
On Error GoTo Err_cmdCreateQuote_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmQuotes"
DoCmd.OpenForm stDocName, , , stLinkCriteria, acFormAdd
Forms!frmNavigation.cboSalesPersSelect = Me.Salesperson
Exit_cmdCreateQuote_Click:
Exit Sub
Err_cmdCreateQuote_Click:
msgbox Err.Description
Resume Exit_cmdCreateQuote_Click
End Sub