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  

Including a function in a chart's row source



 
 
Thread Tools Display Modes
  #1  
Old May 20th, 2004, 06:21 AM
BobRoyAce
external usenet poster
 
Posts: n/a
Default Including a function in a chart's row source

I have a chart on a report with a Row Source that includes two values to be pulled from a form as well as one that needs to be returned by calling a function (GetLargestCategory). Assume that the function involved returns a single-quote delimeted string (e.g. 'Category1'). A sample Row Source is shown below. My question is "What is the proper way to include a function call in the Row Source property?" I have done it as shown below and I get no data back in spite of the fact that, if I manually construct the SQL referencing the form controls, and the function call, I get data back.

--- ROW SOURCE BEGINS ---

PARAMETERS [Forms]![Reporting]![Month] IEEEDouble, [Forms]![Reporting]![Line] Text ( 255 );
TRANSFORM Sum(TimeTaken) AS SumOfTime
SELECT FiscalMonth
FROM Table1
WHERE (SystemMonth=[Forms]![Reporting]![Month])
AND (Line=[Forms]![Reporting]![Line])
AND (Category=GetLargestCategory())
GROUP BY FiscalMonth
PIVOT CategorySubType

--- ROW SOURCE ENDS ---

 




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 07:14 PM.


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