Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
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 June 30th, 2006, 05:45 AM
Registered User
 
Join Date: May 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Textbox Problem: desperately looking for help

I just a simple textbox in a subReport, and I set the control source to be ="Mean="&[C1 Mean Value],[C1 Mean Value] comes from a table called tblC2. But it turns out to be an error in this textbox(see below):

ID Mean Value Comment
1 Error ......
2 Error ......

It dosen't come up with an error box but just has error in that specific field in the report. Any idea? Thank you very mcuh

 
Old June 30th, 2006, 06: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

Questions:

1) Is the subform bound or UNbound?

2) If the subform is unbound, then you need to look up the value of [C1 Mean Value], perhaps using a DLookUp function, e.g.

="Mean=" & DLookUp("[C1 Mean Value]", "tblC2", "[Some Other Field] = " & Me.AnotherTextBox)

3) Why do you set the textbox value to be

="Mean=" & [C1 Mean Value]

instead of just having the LABEL say "Mean =" and having the TEXTBOX just set only to

=[C1 Mean Value]



Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
 
Old June 30th, 2006, 07:07 AM
Registered User
 
Join Date: May 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thx so much, one more stupid question: how to know wheather it is bound or unbound?

 
Old June 30th, 2006, 07:20 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

Take a look at the Record Source property of the subform in Design View.


Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
 
Old July 16th, 2006, 02:08 AM
Friend of Wrox
 
Join Date: Jul 2005
Posts: 150
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Check the propery for the textbox and make sure that the name is not the same as the field name of [C1 Mean Value] used in the calculation. If it is you will need to change the name fo the text box to soemthing that does not make a field name in the report's record sorce.

Boyd
"Hi Tech Coach"
Access Based Accounting/Business Solutions developer.
http://www.officeprogramming.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Need some help desperately! Deeps Other Programming Languages 0 August 30th, 2007 09:58 AM
making a journey planner. Desperately need help! fabalyssa VB How-To 0 August 27th, 2007 12:13 PM
xslt help desperately needed daula7 XSLT 2 May 10th, 2006 12:09 PM
textbox problem dr_luxure VB.NET 2002/2003 Basics 3 April 10th, 2005 03:33 PM
Desperately Need Help with Loop & Display Script pupadu Classic ASP Basics 2 March 28th, 2005 07:56 PM





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