filter

RayNDM83

Hi,
Is there a way to replicate this vba command using the macros?
If Me.Filter = "" Then
MsgBox "Apply a filter to the form first."
Else
DoCmd.OpenReport "r_PullPkgCkOffSheet", acViewPreview, , Me.Filter
End If
End Sub
The reason why I'm asking is, when I make my dbase to ACCDE the vba code
does not work while macros do.
Thanks for the help.
Ray