For strings and dates:
.DoCmd.OpenReport ReportName, lAction, , "theFieldName = 'ABC'"
(note the single quotation marks around the criteria)
For numbers:
.DoCmd.OpenReport ReportName, lAction, , "theFieldName = 1"
(no quotation marks) [/b][/i][/u]*******************************************************
General remarks:
If this post contains any suggestions for the use or distribution of code, components or files of any sort, it is still your responsibility to assure that you have the proper license and distribution rights to do so!