combo box filters report

tubar

Registered User.
Local time
Today, 08:18
Joined
Jul 13, 2006
Messages
190
i have a report based on a queery. i have a form with 3 combo boxes and a button. i select info from combo boxes and hit the button...the form loads with filtered data. the on click for the button is as followed---please help me fix the code...i think it has to do with the expression of the three combo boxes

Private Sub AddDeleteEmployees_Click()
On Error GoTo Err_AddDeleteEmployees_Click
Screen.PreviousControl.SetFocus
DoCmd.OpenReport "invoice", acPreview, , "[event.id] = " & Me.[Combo2]
[client.id] = " & Me.[Combo0]"
[venue.id] = " & Me.[Combo4]"
Exit_AddDeleteEmployees_Click:
Exit Sub
Err_AddDeleteEmployees_Click:
MsgBox Err.Description
Resume Exit_AddDeleteEmployees_Click

End Sub
 
More like

DoCmd.OpenReport "invoice", acPreview, , "[event.id] = " & Me.[Combo2] & " And [client.id] = " & Me.[Combo0] & " And [venue.id] = " & Me.[Combo4]
 
works like a champ!!! thanks a bunch!!
 

Users who are viewing this thread

Back
Top Bottom