D
Dave Elliott
Below is my code to open the form BlankChecks via the form
frmAutoPayrollReport
There is a drop down list on the form frmAutoPayrollReport wher the criteria
for the Customer comes from,
named Combo187 then there is a on click command button which I use to use
the code below.
It does not work... why ?
Dte1 = Forms!frmAutoPayrollReport!BeginDate
Dte2 = Forms!frmAutoPayrollReport!EndDate
Dim stDocName As String
Dim stLinkCriteria As String
On Error GoTo Err_Command189_Click
stDocName = "BlankChecks"
DoCmd.OpenForm stDocName, "", "[Customers] =
[Forms]![frmAutoPayrollReport]![Combo187]"
Exit_Command189_Click:
Exit Sub
Err_Command189_Click:
MsgBox Err.Description
Resume Exit_Command189_Click
frmAutoPayrollReport
There is a drop down list on the form frmAutoPayrollReport wher the criteria
for the Customer comes from,
named Combo187 then there is a on click command button which I use to use
the code below.
It does not work... why ?
Dte1 = Forms!frmAutoPayrollReport!BeginDate
Dte2 = Forms!frmAutoPayrollReport!EndDate
Dim stDocName As String
Dim stLinkCriteria As String
On Error GoTo Err_Command189_Click
stDocName = "BlankChecks"
DoCmd.OpenForm stDocName, "", "[Customers] =
[Forms]![frmAutoPayrollReport]![Combo187]"
Exit_Command189_Click:
Exit Sub
Err_Command189_Click:
MsgBox Err.Description
Resume Exit_Command189_Click