Hi guys,
First, Jay, thanks for posting this code (eventhough it was quite a while ago!). I'm pretty sure it's exactly what I'm looking for.
The report I've built pulls a "Group Code" from a combo-box in a form and creates the report based on that single Group. I've been asked to change it so that you can select one, multiple, or all Group codes. The report is already set up grouping on Group code (this could get confusing!), so that's no big deal. I just don't know how to set up my query to pull multiple codes from a list box. I do know how to set up the list box, just not how to use it for more than one value to be entered into a parameter query.
As it's set up now, the report opens in print-preview mode from the switchboard. The OnOpen event first opens the form with the combo-box, and when you hit "ok" it hides the form and creates the report, which contains 2 subreports, and thus 3 queries, only one of which has the parameters entered, and the others are linked by master/child fields. Pretty simple.
I'm looking at your code here, and I'm not sure how to put it into my report. My VB skills are almost nil. I can sorta understand what you've written, but I have no idea how to use it. Where do I put it? Which parts do I have to change? I don't need the Start and End dates, but in my form, I select "Activity Code" which controls the "Group Code" combo, and then both parameters are needed in the query. Activity Code will never be Null, because it is essential in the query, so do I even need to put it into the code?
As you can see, I have no idea what I'm doing!!
Any help you can give me would be great.
Thanks,
~ Nuke ~