A
Albert D. Kallal
Text values need to be surround in quotes. You can use single quotes.
Also, are you sure you need "qrygeneral" as a filter name?
Case 2
stDocName = "rptGeneral"
stLinkCriteria = "sRecLotNo = '" & Me.txtLotNo & "'"
End Select
DoCmd.OpenReport stDocName, acPreview, "qrygeneral", stLinkCriteria
Also, are you sure you need "qrygeneral" as a filter name?