Where are these criteria? I would put them on the form and pass them in the WHERE clause of the DoCmd.OpenReport or OpenForm event like this, assuming the Vendor Combo takes an integer (PK):
Dim sLink As String
Dim sDoc As String
If IsNull(Me.cboVendorName) Or Me.cboVendorName = "" Then
sLink = ""
Else
sLink = "[VendorName] = " & Me.cboVendorName
End If
sDoc = "rptMyReportName"
DoCmd.OpenReport sDoc, acPreview, , sLink
Did that help?
mmcdonal
Look it up at:
http://wrox.books24x7.com