mithani
Registered User.
- Local time
- Tomorrow, 07:47
- Joined
- May 11, 2007
- Messages
- 291
Hi All,
I have designed report screen where user can choose:
1. Report Type
2. Project
3. Supplier
4. Product Type
5. Date From
6. Date to
User will select report type and then the other are optional. If he didn't select anything then should get complete report of the selected report type.
I am trying the below code but showing error. please see the attached jpg.
Any help?
Thanks
mithani
I have designed report screen where user can choose:
1. Report Type
2. Project
3. Supplier
4. Product Type
5. Date From
6. Date to
User will select report type and then the other are optional. If he didn't select anything then should get complete report of the selected report type.
I am trying the below code but showing error. please see the attached jpg.
Code:
DoCmd.OpenReport "Purchase Report", acViewPreview, , IIf(IsNull(Me.PROJECT), ",", "[Project_code]='" & Me.PROJECT) _
& "'And & ([InvoiceDate] Between #" & Me.DateFrom & "# And #" & Me.DateTo & "#)"
Any help?
Thanks
mithani