G
Guest
I have a button on a form to open a report based on a
value of a field on the form ([field2]) which works fine
(Code Below). I want to also used a second criteria eg
where all field3 are = null. I it possible to do this
using this method and how do I do it.
Thanks in advance
Martin
stDocName = "rptOne"
stLinkCriteria = "[field1]=" & "'" & Me![field2] & "'"
DoCmd.OpenReport stDocName, acViewPreview, , stLinkCriteria
value of a field on the form ([field2]) which works fine
(Code Below). I want to also used a second criteria eg
where all field3 are = null. I it possible to do this
using this method and how do I do it.
Thanks in advance
Martin
stDocName = "rptOne"
stLinkCriteria = "[field1]=" & "'" & Me![field2] & "'"
DoCmd.OpenReport stDocName, acViewPreview, , stLinkCriteria