Solved

reference a subform to a report

Posted on 2004-09-28
2
543 Views
Last Modified: 2012-05-05
I have a report which displays fields from a form and a subform. the data displayed in the form/subform(master/child) are the source of the report.
My form is bound but my report is unbound.

The fields in the report reference the fields in the form like this =forms!formname!fielName
this works great when the report field source is the master form form displaying the correct values in the report however, it does not work for the report fields depending on the child form(subform). the report fields based on the subreport display #name?.

in the report, the fields based on the subform I have tried =forms!subformname!fieldName. I have also tried =forms!formName!subformName!fieldName. either way these fields do not display the expected value instead they dispaly #Name?

does anyone know the syntax to make this work?

I hope I'm explaining my problem enough for you to help me, if not ask me questions.
0
Comment
Question by:lallentx
2 Comments
 
LVL 12

Accepted Solution

by:
pique_tech earned 125 total points
ID: 12174446
=forms!formName!subformName.Form!fieldName
                                             ^^^^^
You have to "tell" Access that you want to refer to something of the subform AS A FORM, which requires the one additional little tid-bit.

Hope this helps.
0
 

Author Comment

by:lallentx
ID: 12174776
thanks pique tech, such a little thing can make such a big difference.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I guess that all of us know that caching the data usually increase the performance, but I worried if all of us are aware about the risk that caching the data provides and how to minimize this.  That’s the reason why I decided to write this short art…
CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

820 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