Where Condition

livvie

Registered User.
Local time
Today, 14:41
Joined
May 7, 2004
Messages
158
I want to run a different report depending on 2 conditiond being true - how do I do this. I can get it working with one condition but how do I AND the conditions. Here is what I tried and I am getting a type mismatch error.

strCondition = "[confirm] = 1" And "[id]= " & Me!fsubQuoteList![id] & ""

DoCmd.OpenReport stDocName, acPreview, , strCondition
 
Code:
strCondition = "[confirm] = 1 And [id]= " & Me.fsubQuoteList![id]
 
Spot on. What would I do without ye.
 

Users who are viewing this thread

Back
Top Bottom