Create One Report from one Query with multiple parameters

trock12

New Member
Joined
Dec 17, 2014
Messages
29
Hopefully the title makes sense. I have a query that uses 2 parameters - User, and a date range Start Date thru End Date.

When you run the query as a standalone, you would input the User's Name, then Start Date and End Date to get the desired information.
There are 14 users. I'm hoping to create 1 report, with a separate section for each user - all for the same variable of date range.

The goal is to just run the report, type in the date range, and have it populate a section for each user with the returned query information.

I'd have to think there is a simple solution to this that doesn't involve make a "Pre-Made" query for each user, and then entering in the date range 14 separate times to generate the report.

Any help would be appreciated!
 
Sorry for the delay in response. The primary key in tbl_user, is linked in the tbl_info_added. So when I look at the table records in tbl_info_added for "username", it gives me the primary key for the user that was selected. I have to go to the tbl_user table to see that 1 corresponds to Jack Smith.

When I use the above CStr addition, I don't get all the information. For example, Jack Smith entered info on 2/18/2016, so he should not pull on the query, yet it does. It looks like it's just pulling the same information for the first query, but within the date range.
 
Upvote 0

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,221,827
Messages
6,162,202
Members
451,752
Latest member
freddocp

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top