It is rough to get the right combo of commas, single and double quotes. I tried a few variations without success.
Below is a snapshot of the code. I left the working line in there commented out then the next one line with the second variable that is not working. It is getting the message method or data member not found highlighting the .Associatelisting.
Code:
' DoCmd.OpenReport "rpt_PIM_bjk_4_2006", acViewPreview, , "PIandM = '" & Me.AssociateListing & "'"
DoCmd.OpenReport "rpt_PIM_bjk_4_2006", acViewPreview, , "PIandM = '" & Me.AssociateListing & "' AND Marketproduct = '" & Me.MarketProduct & "'"