AccessRobo
Registered User.
- Local time
- Yesterday, 22:43
- Joined
- Mar 27, 2012
- Messages
- 12
Hope this is where I ask a question?
I want to filter a report using a combo box in a form. I have a PriceList table, that has the PriceListID, PriceListName etc. It is linked to the PriceListDetail table where the ProductID, MarkUp & Prices are.
I have three places I sell my goods at the moment, Auction, Website 1, Website 2. I have put a combo box in a form called frmPriceListReportCriteria. The combo box's name is cboListNameChoice.
I have a preview button on the form, it's name is cmdPreviewList.
My reports name is rptPriceListByName, this at the moment shows me all my Price Lists together. It has the PriceListName and below that the Products and the Prices, etc. I want to be able to see one PriceList at a time, ie. Auction or Website 1 or Website 2, if chosen.
I want to put the VBA code in the On Click (event procedure) of the Preview button (cmdPreviewList). Or will look at other suggestions. I am copying things from a tutorial book and trying to adapt them. The tutorial showed me how to filter using an option group. But my problem is that if the user makes more price lists, then those would not be included in the options, and I can't keep redoing the code. I therefore want to use a combo box.
Thank you for any suggestions.
I want to filter a report using a combo box in a form. I have a PriceList table, that has the PriceListID, PriceListName etc. It is linked to the PriceListDetail table where the ProductID, MarkUp & Prices are.
I have three places I sell my goods at the moment, Auction, Website 1, Website 2. I have put a combo box in a form called frmPriceListReportCriteria. The combo box's name is cboListNameChoice.
I have a preview button on the form, it's name is cmdPreviewList.
My reports name is rptPriceListByName, this at the moment shows me all my Price Lists together. It has the PriceListName and below that the Products and the Prices, etc. I want to be able to see one PriceList at a time, ie. Auction or Website 1 or Website 2, if chosen.
I want to put the VBA code in the On Click (event procedure) of the Preview button (cmdPreviewList). Or will look at other suggestions. I am copying things from a tutorial book and trying to adapt them. The tutorial showed me how to filter using an option group. But my problem is that if the user makes more price lists, then those would not be included in the options, and I can't keep redoing the code. I therefore want to use a combo box.
Thank you for any suggestions.