Seems simple i would think.
Two reports one for multiple clients, one for just a single client. I want to do it from 1 page, but with one button (for idiot proofing).
The entry page has inputs. a beginning client and an end client. the if statement should check to see if they're the same. if they are, open the single client report, if they're different, open the multiple client report. This is what i've written but it always tells me that there's missing a =
Two reports one for multiple clients, one for just a single client. I want to do it from 1 page, but with one button (for idiot proofing).
The entry page has inputs. a beginning client and an end client. the if statement should check to see if they're the same. if they are, open the single client report, if they're different, open the multiple client report. This is what i've written but it always tells me that there's missing a =
Code:
Private Sub Command11_Click()
IIf([E_CLIENT]=[S_CLIENT], DoCmd.OpenReport("AR - Statement - Single", acViewPreview), DoCmd.OpenReport("AR - Statement", acViewPreview))
End Sub