MultiSelect Listbox as Crosstab Query Parameter

nstratton

Registered User.
Local time
Today, 08:25
Joined
Aug 30, 2015
Messages
85
A little background as to what is going on. I have created a chart on an unbound form, the sole purpose of this form is to hold the chart and nothing else. With a combination of the chart wizard and VBA I have the chart formatted and populating like I would expect. Now I want to be able to limit/filter the chart based on user input from a form.

I came across this link in searching how to filter the chart and it does it seems perfect for what I need. http://www.pcreview.co.uk/threads/crosstab-values-of-my-chart.1653639/

Now the problem is I would like to implement a multiselect listbox to do this. My understanding is these types of listboxes need VBA to get the values. I have not attempted anything yet as I do not know where to begin with it.

If there is anything I can provide (code, database, etc) I will post.
FYI: This is a desktop version of Access 2010
 
I understand the concept of what you are saying but am struggling to understand the full implementation without code. Wouldn't you need an On_DblClick event or something similar to trigger the append query? Guess I'm not understanding how the append query will know which values to pick from the listbox without some sort of code somewhere.

Also, there may be situations where the listbox is not needed at all and the chart is being filtered another way. Will your method account for a situation like that?
 

Users who are viewing this thread

Back
Top Bottom