C
Craig Ferrier
I have 3 form fields
FromDate
ToDate
PaymentType
In the query I have fields
Date
Payment Type
In the criteria for the date I have:
Between [Forms]![frmReportDateType]![FromDate] And
[Forms]![frmReportDateType]![ToDate]
this allows me to input a date into the form and view a report based on the
query of all items within the two dates.
I want to go a step further and select payment types, I have a list of
payments types, ie cash, visa, mastercard, check.
I want to be able to select 1 or select all into the query. Any clues on
how to build this.
[Forms]![frmReportDateType]![PaymentType] as criteria within the query
allows me to select 1 item, but there i times I want all items in the list
to be used. (in other word no selection criteria for this field)
i tried this in the query
IIf([Forms]![frmReportDateType]![PaymentType]="","",[Forms]![frmReportDateTy
pe]![PaymentType])
but it didnt work.
Any clues?
Thanks
Craig
FromDate
ToDate
PaymentType
In the query I have fields
Date
Payment Type
In the criteria for the date I have:
Between [Forms]![frmReportDateType]![FromDate] And
[Forms]![frmReportDateType]![ToDate]
this allows me to input a date into the form and view a report based on the
query of all items within the two dates.
I want to go a step further and select payment types, I have a list of
payments types, ie cash, visa, mastercard, check.
I want to be able to select 1 or select all into the query. Any clues on
how to build this.
[Forms]![frmReportDateType]![PaymentType] as criteria within the query
allows me to select 1 item, but there i times I want all items in the list
to be used. (in other word no selection criteria for this field)
i tried this in the query
IIf([Forms]![frmReportDateType]![PaymentType]="","",[Forms]![frmReportDateTy
pe]![PaymentType])
but it didnt work.
Any clues?
Thanks
Craig