Yes.
I build the code as you mentioned, however it keeps on poping out everytime I use the combo box.
I found a code from the net (Google search), did some modifications and use it. It worked but the report is blank (no data) and contains only the report headers. What I want is that whenever I select a Section name in my combo box it would print only the records (w/ 7 fields) based on the selected value. Below is my code. I really appreciate if you could help me on this one.
Thank you.
Code:
Private Sub Combo0_Click()
Dim strwhere As String
strwhere = " [Section]= ' " & Combo0 & "'"
DoCmd.OpenReport "rptAllStaffReport", acViewPreview, , strwhere
End Sub