Hi,
I'm getting a "Type Mismatch" error on the code below after adding the fields [ProductDescription] and [ProductColour] in the expression.
All three fileds are of the text type.
Thanks, in advance, for your help.
I'm getting a "Type Mismatch" error on the code below after adding the fields [ProductDescription] and [ProductColour] in the expression.
All three fileds are of the text type.
Dim strDocName As String
Dim strWhere As String
strDocName = "rptProducts"
strWhere = "[ProductID]='" & Me![ProductID] & "'" And "[ProductDescription]='" & Me![ProductDescription] & "'" And "[ProductColour]='" & Me![ProductColour] & "'"
DoCmd.OpenReport strDocName, acViewNormal, , strWhere
Dim strWhere As String
strDocName = "rptProducts"
strWhere = "[ProductID]='" & Me![ProductID] & "'" And "[ProductDescription]='" & Me![ProductDescription] & "'" And "[ProductColour]='" & Me![ProductColour] & "'"
DoCmd.OpenReport strDocName, acViewNormal, , strWhere
Thanks, in advance, for your help.