Hi all,
Im printing a report from a form. using a filter:
Dim stDocName As String
stLinkCriteria = "[RMA nr]=" & "'" & Me![RMA nr] & "'"
stDocName = "Repair"
DoCmd.OpenReport stDocName,acViewNormal, ,stLinkCriteria
But I want to put an extra filter in it and I dont know how to do that.
If field1 doesnt have data, then theres no need to print the form.
So what I need is a filter like: [RMA nr]=123 AND [field1]<>null
Can someone tell me how to do that??
Thanx,
Xiphias
Im printing a report from a form. using a filter:
Dim stDocName As String
stLinkCriteria = "[RMA nr]=" & "'" & Me![RMA nr] & "'"
stDocName = "Repair"
DoCmd.OpenReport stDocName,acViewNormal, ,stLinkCriteria
But I want to put an extra filter in it and I dont know how to do that.
If field1 doesnt have data, then theres no need to print the form.
So what I need is a filter like: [RMA nr]=123 AND [field1]<>null
Can someone tell me how to do that??
Thanx,
Xiphias