Solved

MS ACCESS - Trouble with Report - SubReport in section footer

Posted on 2014-09-04
3
322 Views
Last Modified: 2014-09-04
I am creating a telephone directory.
This report is primarily sorted by OfficeID (1,2,3) We have three offices.
The report works fine from TelephoneDirectoryQ
I want to show the support extensions from another query in a subform in the footer of the OfficeID section.
I need this subreport to filter only the items that match the section OfficeID.
If I just insert SubformSUPPORT into the footer, it shows all office support extensions for every OfficeID fotter, not just the ones from the sorted OfficeID section.
When I link any Master Fields / Sub Fields and then run the report, I get a box asking for a value.
help?
 subform.jpg
0
Comment
Question by:gpchicago08
3 Comments
 
LVL 12

Accepted Solution

by:
pdebaets earned 500 total points
ID: 40304722
Try putting a hidden control in the group footer section that contains your Office ID. Verify that the value of this OfficeID control is set correctly prior to setting the visible property to No. Then set that as your Link Master Field for the subreport.
0
 
LVL 34

Expert Comment

by:PatHartman
ID: 40304750
The reason you need to add the hidden control is because Access rewrites the RecordSource for reports (it does not do this for forms) and it isn't smart enough to check code or apparently the master/child links.  Access removes ALL columns that are not specifically bound to a control on the report so if you need something in code or elsewhere, you MUST bind it to a control.  As pdebaets said, it doesn't have to be visible.
0
 

Author Closing Comment

by:gpchicago08
ID: 40304865
That's it!! Forgot about that!
Thanks!
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now