p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > Microsoft Office > Access and Access VBA > Access
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 16th, 2005, 07:03 AM
Registered User
 
Join Date: May 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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:)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old May 16th, 2005, 07:41 AM
Friend of Wrox
Points: 434, Level: 7
Points: 434, Level: 7 Points: 434, Level: 7 Points: 434, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2004
Location: , , .
Posts: 159
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old May 16th, 2005, 09:47 AM
Friend of Wrox
Points: 9,516, Level: 42
Points: 9,516, Level: 42 Points: 9,516, Level: 42 Points: 9,516, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
Posts: 3,060
Thanks: 0
Thanked 10 Times in 10 Posts
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #4 (permalink)  
Old May 16th, 2005, 11:14 AM
Registered User
 
Join Date: May 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #5 (permalink)  
Old May 16th, 2005, 01:19 PM
Friend of Wrox
Points: 434, Level: 7
Points: 434, Level: 7 Points: 434, Level: 7 Points: 434, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2004
Location: , , .
Posts: 159
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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:)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Navigating data in a subform Bob Pierce Access VBA 2 February 1st, 2007 10:58 AM
count data from subform Vince_421 Access 1 May 27th, 2006 12:51 PM
Subform not displaying data hikinfool Access 8 February 24th, 2006 06:11 PM
Subform on many to many data aware Access 14 August 12th, 2005 03:36 AM
Display data in a subform marcin2k Access VBA 1 March 1st, 2005 04:37 PM



All times are GMT -4. The time now is 12:57 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc