Wrox Programmer Forums
|
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 Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 16th, 2005, 01:34 PM
Authorized User
 
Join Date: Aug 2005
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default wrong reference of a subform

Hi, I am having this problem. I want to reference a value on a subform in a report. I read the help info and this is what it says:

=Forms!Customers!Additional.Delivery

Customers = Main Form
Additional = Subform in Customers
Delivery = Combo Box in Additional

So in the report appears #Name

can someone help?

 
Old November 16th, 2005, 01:51 PM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Check to see if Access is perhaps calling the subform something else, in addition to "Customers". I have been caught by this in the past.

HTH

Mike

Mike
EchoVue.com
 
Old November 16th, 2005, 07:28 PM
Authorized User
 
Join Date: Aug 2005
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

so is there some way to do it or another way.

What I want is to use a print button to print what I see in the form, including Main Form and its subform. I don't care if I have to create a report and everything, I just need to print what I see.

 
Old November 16th, 2005, 11:55 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 217
Thanks: 0
Thanked 1 Time in 1 Post
Default

Did you get the reference to the subform working?

A simple was to print the "what you see", you can create a report (and subreport- use the same queries as you used for the form and subform respectively). Then use the button wizard to put a button on the FORM, select report operations from the wizard, and select "open",...."report"....."then select the report name".

Reply back please if you need assistance.

HTH,
Loralee

 
Old November 17th, 2005, 08:56 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

If you're coding in the main form, you reference the combobox in the subform like this

Me.Additional.Form.Delivery

The "Me." is a shortcut for Forms!Customers. Also, to see what's on a form and subform you NEVER print the form. Always create a report and subreport to print records.

Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
 
Old November 20th, 2005, 02:27 PM
Authorized User
 
Join Date: Aug 2005
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks,

greg that was it.. to reference a subform in a main report i used

=Forms!Customers.Additional.Form.Delivery

and it worked perfect.






Similar Threads
Thread Thread Starter Forum Replies Last Post
reference specific instances of a subform PaulH Access VBA 2 January 18th, 2005 07:23 AM
form/subform reference tmc Access 1 August 7th, 2004 04:16 AM
Filter Subform B Based on Field in Subform A SerranoG Access VBA 3 June 18th, 2004 12:23 AM
Wrong web site reference from the book JAVA2 jrnicl2 Wrox Book Feedback 2 October 15th, 2003 10:18 AM
Wrong web site reference from the book JAVA2 jrnicl2 All Other Wrox Books 0 October 15th, 2003 07:03 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.