Hi all,
Not sure how to word this (part of the problem), I have a form with 3 comboboxes- 2 for dates and 1 for employee name.
I need all three items to call the report correctly, a report on a specific employee for a specified time period. I am callimg from a query and all the info is available. So far I have
Private Sub cmdOpDateRange_Click()
DoCmd.OpenReport "AgentDetailReport2", acViewPreview, , "[LastName]='" & Me.Combo38 & "'""[date] Between #" & Me.cboFrom & "# And #" & Me.cboTo & "#"
End Sub
I have been puttering away at this off and on for some time. I am certain that the answer is directly in front of me but I cannot wrap my mind around it.
Any ideas?
CoachPhil
Not sure how to word this (part of the problem), I have a form with 3 comboboxes- 2 for dates and 1 for employee name.
I need all three items to call the report correctly, a report on a specific employee for a specified time period. I am callimg from a query and all the info is available. So far I have
Private Sub cmdOpDateRange_Click()
DoCmd.OpenReport "AgentDetailReport2", acViewPreview, , "[LastName]='" & Me.Combo38 & "'""[date] Between #" & Me.cboFrom & "# And #" & Me.cboTo & "#"
End Sub
I have been puttering away at this off and on for some time. I am certain that the answer is directly in front of me but I cannot wrap my mind around it.
Any ideas?
CoachPhil