Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

reference a subform to a report

Posted on 2004-09-28
2
Medium Priority
?
549 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 500 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Lotus Notes has been used since a very long time as an e-mail client and is very popular because of it's unmatched security. In this article we are going to learn about  RRV Bucket corruption and understand various methods to Fix "RRV Bucket Corrupt…
One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

971 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