G
Guest
Hi,
I am trying to adjust Allen Browne's MultiSelect LisxtBox filter for report
example at http://www.allenbrowne.com/ser-50.html
However, my sitation has more to it then just one multiselect listbox. I
have a date text field, a combo box and two list boxes on an unbound form
that will provide filter parameters for a report that is based on quite a
complex query from diffrent tables.
Tables: Included in that report query is tblPlantingDetails, tblApplication,
tblApplicationDetails, tblOperation, tblProducts.
Relationships: tblPlantingDetails 1:M tblApplications, tblOperations 1:M
tblApplications, tblApplications 1:M tblApplicationDetails, tblProducts 1:M
tblApplicationDetails.
On an unbound form, I have txtApplicationDate, cboOperations, lstPlantings,
lstProducts.
I have two command buttons, one is cmdAppend with is already working and is
inserting all selected items to their respective tables, and from there, they
already become part of the query that the report is based on.
... Then while having the same values selected, I want to use the other
command button to cycle through the two list boxes and display on the report
the ones selected from lstPlantings and lstProducts, which also equal to the
txtAppicationDate and cboOperation values.
Any help on the VBA side to get this one sorted will be more than helplful
as I have only started teaching myself VBA and a newbie too. I hope I have
explained the problem okay.
Thanks
I am trying to adjust Allen Browne's MultiSelect LisxtBox filter for report
example at http://www.allenbrowne.com/ser-50.html
However, my sitation has more to it then just one multiselect listbox. I
have a date text field, a combo box and two list boxes on an unbound form
that will provide filter parameters for a report that is based on quite a
complex query from diffrent tables.
Tables: Included in that report query is tblPlantingDetails, tblApplication,
tblApplicationDetails, tblOperation, tblProducts.
Relationships: tblPlantingDetails 1:M tblApplications, tblOperations 1:M
tblApplications, tblApplications 1:M tblApplicationDetails, tblProducts 1:M
tblApplicationDetails.
On an unbound form, I have txtApplicationDate, cboOperations, lstPlantings,
lstProducts.
I have two command buttons, one is cmdAppend with is already working and is
inserting all selected items to their respective tables, and from there, they
already become part of the query that the report is based on.
... Then while having the same values selected, I want to use the other
command button to cycle through the two list boxes and display on the report
the ones selected from lstPlantings and lstProducts, which also equal to the
txtAppicationDate and cboOperation values.
Any help on the VBA side to get this one sorted will be more than helplful
as I have only started teaching myself VBA and a newbie too. I hope I have
explained the problem okay.
Thanks