You need to add the strWhere as the where clause:
Case 3
strDocName = "Labels Zebra000"
strWhere = "[Label] = -1"
DoCmd.OpenReport strDocName, acPreview, , strWhere
End Select
--
Duane Hookom
MS Access MVP
"Dale C Gray" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I've tried every syntax known to man? I can't get this report to filter,
> the workaround has been to have the report bound to a query that has the
> label criteria set to true. What syntax have I not used! Thanks all!
>
> Case 3
> strDocName = "Labels Zebra000"
> strWhere = "[Label] = -1"
> DoCmd.OpenReport strDocName, acPreview
> End Select
>
> Also tried:
> "[Label]=True"
> "[Label]=" & True
> "[Label]=" & -1
>
> Acccckkkk!
>
>
|