A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

"Build" in Control Source greyed out



 
 
Thread Tools Display Modes
  #1  
Old March 18th, 2010, 05:05 PM posted to microsoft.public.access.reports
briank
external usenet poster
 
Posts: 96
Default "Build" in Control Source greyed out

I would like to created a simple calculation in my footer's text box but I
suspect that I'm missing an obvious roadblock somewhere. First of all, the
Build button in the Control Source is greyed out so I typed the calc in
manually the calculation is =sum((val([textbox1]) + val([textbox2])) .
When I run the report from a VBA induced Run button, the report never shows
up (keep in mind that this only happens when I add this calc field).
Probably important to note that the source query is a stored procedure.
Barring looking through endless lines of code behind the Run button, is there
an obvious solution here? TY.
  #2  
Old March 18th, 2010, 10:54 PM posted to microsoft.public.access.reports
Marshall Barton
external usenet poster
 
Posts: 5,361
Default "Build" in Control Source greyed out

briank wrote:

I would like to created a simple calculation in my footer's text box but I
suspect that I'm missing an obvious roadblock somewhere. First of all, the
Build button in the Control Source is greyed out so I typed the calc in
manually the calculation is =sum((val([textbox1]) + val([textbox2])) .
When I run the report from a VBA induced Run button, the report never shows
up (keep in mind that this only happens when I add this calc field).
Probably important to note that the source query is a stored procedure.
Barring looking through endless lines of code behind the Run button, is there
an obvious solution here?



You can only use an aggregate function on record source
fields. These functions are totally unaware of controls on
a form or report.

If you can figure out where textbox 1 and 2 get their
values, then you can use those fields or expressions in the
Sum function. E.g. If you have a text box named Amount
that has an expression like =Quantity * Price, you can NOT
use =Sum(Amount) Instead you need to use:
=Sum(Quantity * Price

--
Marsh
MVP [MS Access]
 




Thread Tools
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
Forum Jump


All times are GMT +1. The time now is 11:59 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.