Why can't I pass a value to a label on a report? I put lblAction in the report header but it's not showing up as expected.
Dim stDocName As String, stSelectTech As String
stDocName = "rptFollowup"
stSelectTech = "Tech='" & Forms![frmTechnician]![cboTechnician] & "'"
DoCmd.Close acForm, "frmTechnician", acSaveNo
If stSelectTech = "Tech='All Technicians'" Then
DoCmd.OpenReport stDocName, acViewPreview
Reports![rptFollowup]![lblAction].Caption = "All Technicians"
Else
DoCmd.OpenReport stDocName, acPreview, , stSelectTech
Reports![rptFollowup]![lblAction].Caption = stSelectTech
End If
Dim stDocName As String, stSelectTech As String
stDocName = "rptFollowup"
stSelectTech = "Tech='" & Forms![frmTechnician]![cboTechnician] & "'"
DoCmd.Close acForm, "frmTechnician", acSaveNo
If stSelectTech = "Tech='All Technicians'" Then
DoCmd.OpenReport stDocName, acViewPreview
Reports![rptFollowup]![lblAction].Caption = "All Technicians"
Else
DoCmd.OpenReport stDocName, acPreview, , stSelectTech
Reports![rptFollowup]![lblAction].Caption = stSelectTech
End If