Sub Reports In Main Report - Access Reports - ms-access

I have an access report that has 4 sub reports/forms. each of these sub report is meant to display patients admitted,transfers in , transferred out and discharged from a particular ward. I have 4 different queries to perform the task. When i run the queries alone they work fine . The queries prompts the user for start and end date and display the results.
The problem is when i attach each of these queries to each sub reports and run the report, it asks for the start date 4 times, which is logically right because it is running the 4 sub reports separately.
I cannot combine all into one query because even though the data is pulled from 1 table the conditions are different. I am also restricted in creating a form and a button to pull the report base on start dates supplied by user as i need to run the report directly.
Is there any way that i can display data on all 4 sub reports by entering the date only once.
I use Ms Access 2003
Any help would be appreciated.
Thanks
Regards.

On the report open event, popup an input box asking for the date. Use that date as the parameter for each query.
Don't have time to test it, so a possible obstacle to this idea is if the open event happens after the report starts running the queries.

If you use Sub-rpt wizard it auto connects and only requires 1 set of triggers. I have 6 Sub-rpts on 1 main form and all use a number to start the queries. I only entry the number 1x and all queries & reports run. It will connect an already created report as a sub-rpt.

Related

Create a Report Based On a Parameter Query

I have an Access application that has been running for years now. It's a payroll system. There's a query (let's call it Query3) that pulls data from 2 crosstab queries. Everything worked fine until when I introduced a parameter in the crosstab queries. The parameter refers to a date on a form. Now I can't create a report with Query3 as its record source. When I use Report Wizard and I select Query3 as its record source the field names are not displayed. I have a sub that programmatically creates a report based on Query3 but now with the parameter this fails too. I'm really stumped. Is there any workaround? Thanks in advance for your help.
Are you using the Forms!MyForms!MyControl syntax as the parameter in the Crosstab subs? The problem seems to be related to Access not finding the control .
One thing I have done in the past is, if possible, is to remove the crosstab parameters and instead set the SQL of the crosstabs before running the report. So for example:
CurrentDB.QueryDefs("CrossTabSubName").SQL - "SELECT * FROM TABLE WHERE MyParam = 'A'"
If you have a button or something that launches the report, this may be an convenient place to do this. If the parameter is on the same form (i.e. a report filter), then this approach is simple to implement. In this example, the value of 'A' is a control on the form that allows th user to filter the report.

Need to write SSRS report that uses stored procedure with a pivot as a dataset but I can't get the report to be dynamic, is this even possible?

I have a bear of a problem here. The user wants a report that shows the earnings, deductions and liabilities (EDL) code of each employee or null/blank if an EDL code doesn't apply to that employee. I needed one row for each employee name and columns for each possible EDL code combination. I got that answer fixed from my previous question here:
Struggling with a dynamic pivot on multiple columns with one being concatenated
I ran into a problem where there are a potential 270 column headings (EDL code combination with "subj", "elig" or "amt" appended) but not every employee will have a value for every column and security settings lock me out of seeing 1 of the 3 payroll groups. This made my report very limited in that when I ran it I could only show on the Crystal Report the data for what columns I had at the time I created the Crystal Report. Well, the user who requested this report has access to payroll group 1 and if even one of those employees had an EDL code that I didn't have in my data when I created the Crystal Reports file then the report wasn't useful to the user. We figured a way for her to get the info she needed by her logging into SQL Server and executing the stored procedure and she did what she needed to do with the data.
Fast forwarding to today I have to create this as a report in SSRS or give detailed instructions on how she can do this in the future if need be since my contract is coming to an end. I'm not familiar with SSRS but I thought maybe that would meet her needs over Crystal Reports. However, I'm running into the same problem. When I add the stored procedure as a dataset (adding it in as text to execute, not clicking the stored procedure radio button) I only see the EDL codes from that particular query not all potential combinations. I need a way to maybe dynamically add columns to the SSRS report, does such a thing exist?

ssrs linked reports not updating

I have created a linked report in ssrs. I have made a action from the values in a Pivot matrix to another report which shows just raw data. My Pivot matrix is perfect however when I click on a value for example 9 and takes me to my raw data report I only get back 8 results. My parameters pass through fine.I ran a query in sql server to see that result did not come back in the report and that record was created on a different date than the other 8 that came back which were all created on the same date.
Note some linking works fine if I click on the value of 10 it will bring back 10 results.
The scenario I have is the matrix has a count value of items on a particular day. For example day 1 has 10 assets sold and when I click on that value it is meant to show the 10 assets in another report. Sometimes only less will show. could this be a cache error or a coding error?
Thanks

MS access reports

I created a report using wizard and while creating I selected 4 columns for ordering data in ascending orders. It asked for 4 columns and chose 4 columns and after creation I want to change the preference of the second column to other one. How can I do that??
I cannot see anything in the report query or anywhere else
Ignore any ordering in your report's query source. You can discard your ORDER BY from the query because the Access report will use whatever settings you give it for "Sorting and Grouping" instead.
In Access 2003, with your report in design view, choose View -> Sorting and Group from the Access main menu. If your version of Access is different, look for a similar option.
I should think its just as quick to re-run the whole report. However you can edit the Query that the report is built on.
Or make a query, then get the report to run from the query, this means you can easily change it.

MS Access Reports

I have a database of meetings. I can generate a report that sorts the actions by meeting but I would like to generate a separate report for each meeting. Any thoughts?
You can write a Query in Access with a 'Where' clause that's set to something like [Enter the meeting number]. When running this query, Access will prompt for user input. Then you can set a report's data source to that query, so when running the report, Access will prompt for a meeting number (ID).
Alternatively, you could create a form with some sort of selection interface for the user to pick a meeting, dynamincally update the query, and run the report.
The first approach is easier, the second approach is more usable.
If you want to report on all the meetings in one run, but get a separate report for each meeting you could add a grouping header on the Meeting and set that section of the report to do a page break before the that section.