I have a form that has a subform which is based on a query, not linked to the main form. Here is the query:
What I want to have happen is on two unbound text boxes allow users to enter a date range and have the subform filtered to only show records of the date range entered in the main form boxes.
Main Form: VoucherMain
SubForm: VoucherDetail Subform
Field in Subform to Filter: DateTimeStamp Default Value: =Date()
Fields in Main Form used for Range: BeginDate & EndDate
Button to Apply Filter on Main Form: FilterTrans
I have searched for a working solution for my issue to no avail, so any help is appreciated.
Thanks,
KJ
Code:
SELECT tblSalesDetail.SaleDetailID, tblSalesDetail.SalesPrice, tblSalesDetail.PostedVouchers, tblSalesDetail.DateTimeStamp
FROM tblSalesDetail
WHERE (((tblSalesDetail.PostedVouchers)=False));
What I want to have happen is on two unbound text boxes allow users to enter a date range and have the subform filtered to only show records of the date range entered in the main form boxes.
Main Form: VoucherMain
SubForm: VoucherDetail Subform
Field in Subform to Filter: DateTimeStamp Default Value: =Date()
Fields in Main Form used for Range: BeginDate & EndDate
Button to Apply Filter on Main Form: FilterTrans
I have searched for a working solution for my issue to no avail, so any help is appreciated.
Thanks,
KJ