![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Using Access 2010. I've got a request from a user to develop an Access report that shows medical residents assigned to teaching doctors by month. Currently the user uses an Excel spreadsheet, one column per month, 12 doctors across for each month, one or more residents below their assigned doctor. Spreadsheet looks like so: JANUARY FEBRUARY MARCH... Dr. J Dr. M Dr. D Jones Smith Wilson User wants to use an Access database to record all this data and not use Excel anymore if possible. My first thought is just to call Excel thru Access and automate a spreadsheet. My second thought is to create a report with a series of subreports, one for each month for each doctor, and one for each month for each resident. There would be 24 subreports on the report. The user is thinking about adding more data to the report which would mean 24 more subreports. I tried the second thought (with 48 subreports total) and it works pretty slick except sometimes I get the dreaded "system resource exceeded" or "not enough memory..." error messages. Sometimes the report will preview OK but won't print without getting the error messages. So the subreport idea is a bit flaky. The user ALSO wants a blank box printed if there is no data for the month. So if there's no data, just print an outline where the data should be. I couldn't figure out how to do that so I put a transparent box with a solid border underneath each subreport. That way, if there's no data for the subreport, the box will show on the report. If there is data for the subreport, then the subreport prints and hides the box. This is a very busy and complicated Access report. Obviously it's too flaky to give to the user. Am I doing it the best way or can you think of a better way? I've not automated Excel thru Access. Would that be the better way? Thanks for any help or advice. |
#3
| |||
| |||
|
|
My first thought is what is your table structure? I really doubt that you would need 48 subreports if your table design was correct. |
#4
| |||
| |||
|
#5
| |||
| |||
|
#6
| |||
| |||
|
|
Thanks for taking time to reply. I think I see where I've made this way too complicated. Currently there is a table for doctors with their name and month they're teaching. So there are 12 records. There are 12 subreports, one for each month. The subreports are linked to the main report by month. Same for the residents. One table for residents with their name and month they're being taught. Subreports are linked to the main report by month. Instead of using subreports, the only alternative I see is to order the doctor table by month, then print all twelve across the page. Same for the residents. |
#7
| |||
| |||
|
#8
| |||
| |||
|
|
Modification to my post above....The doctor table should be restructured to 12 fields instead of 12 records. One field for each doctor. 12 fields since there are 12 months. Same for the residents. Then just place each field in the appropriate place on the report. |
#9
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |