|
|
 |
| Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Access section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

May 16th, 2005, 07:03 AM
|
|
Registered User
|
|
Join Date: May 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
subform data in report
HI
I am creating a report from a current record which has sub forms in the main form. Please could you give me the access path i have to put in the report to allow the data to be accessed from the subform
Thanks in advance
Karl:)
|

May 16th, 2005, 07:41 AM
|
|
Friend of Wrox
|
|
Join Date: Aug 2004
Location: , , .
Posts: 159
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Exhibitor,
I think first of all we should translate ur question to an access language.
Are u saying that u are creating a report from a form with subform ? Ok, what
would u mean saying: "allow the data to be accessed from the subform"?
Would that mean u want the data on the subform to be on the report ? Ok, if
that is the case try using the report wizard.
Rgds Penta
|

May 16th, 2005, 09:47 AM
|
|
Friend of Wrox
|
|
Join Date: Mar 2004
Location: Washington, DC, USA.
Posts: 3,060
Thanks: 0
Thanked 10 Times in 10 Posts
|
|
Hi,
You will probably need to create a query that duplicates the structure of the form/subform. Then use the report wizard. Alternatively, use the report wizard to do the whole thing, but this can be problematic.
You can also pass parameters to your underlying query from the form/subform.
HTH
mmcdonal
|

May 16th, 2005, 11:14 AM
|
|
Registered User
|
|
Join Date: May 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I have found on the microsoft web site Article ID 209099
How to refer to a control on a subform or subreport in access 2000
it shows this code
forms![main form name]![subform control name].form![control name]
when i put this in a report it puts [] around the word forms and form.
but it only producers a #name? on the report
can any one help?
|

May 16th, 2005, 01:19 PM
|
|
Friend of Wrox
|
|
Join Date: Aug 2004
Location: , , .
Posts: 159
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
See my topic "reaching a subform through code". I've escaped the problem by
having the form and subform related by a wizard form link solution. So u will
call form and subform as forms. Although Randall suggested a solution to the
first problem which i'll have to try further.
Hope that help,
Penta:)
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |