MS Access: Chart in report blank when underlying query has a parameter - ms-access

I have a report in MS Access 16 with a chart in the Report Footer. The chart and the report have the same data source - a query ("Pipeline Query"). One of the criteria in Pipeline Query refers to a Combo Box on a form (Qtr = forms![Main Form]![Choose_Pipeline]).
The report and the chart at the bottom look great, however I get a popup saying
"The Microsoft Access database engine does not recognize 'forms![Main
Form]!Choose_Pipeline' as a valid field name or expression."
To fix that, I set a Parameter on the query for forms![Main Menu]![Choose_Pipeline]. This does eliminate the error message, but now the chart is blank! The query still returns the correct data and the data sections of the report work just fine.
Is there something with query parameters that interfere with charts in reports? Is there a workaround?
Update: When I wrote this I could have sworn the chart looked fine if the form reference was in the criteria but not the parameter. Now I can't replicate that and any time the query is dynamic and refers to the form at all, the chart is blank.

Related

Problem with changing order of parameters in a SSRS Report

Adding a new parameter between parameters or reordering parameters in a ssrs report breaks it.
Using text only, can't upload any images... (Failed to upload image; an error occurred on the server)
I created a report that works using the cube "Analysis Services Tutorial".
Parameters: City, State-Province.
Table: State Province, City, Internet Sales Count
This report works fine, but when I change the order of parameters to:
State-Province, City
Then I get that error when previewing the report:
An error has occurred during report processing.
The Value expression for the query parameter 'CustomerCity' contains an error: The expression references the parameter 'CustomerCity', which does not exist in the Parameters collection. Letters in the names of parameters must use the correct case.
One solution that I currently see is modifying the content of the rdl-file.
Hope anyone has any other ideas/solutions what I can do...
Ah well only need to change the order of the parameters in the DataSet and with the context menu on right click I can also move the parameter up/down.

SSRS (Sequel Server Reporting Services) subreports returning "Error: Subreport could not be shown.""

I am using SSMS 18.5 (fully patched).
I have a report with three (parameter selections; date which is used to select from a list of available items in the second parameter, which in turn is used to make a selection from the 3rd parameter. This report works! When I call it as a subreport from a master report (using the insert subreport), if there IS data found based on the three (03) parameters I pass it, I get the intended results. If no data is found, I receive the "Error: Subreport cannot be shown." Error. THIS IS OK.
My intent is to call this subreport multiple times with different parameters to list out the different result sets.
My question is how do I condition the subreport call in the master report to not show the error message?
Psuedo code for the visibility option:
(IIF(returned value = error message), true, false)
I have tried this directly in the subreport properties (Visibility). I have tried putting the subreport call in a rectangle and I have tried putting it in a table / matrix.
There is NO "field" to reference or rowcount that I am aware of. SSMS only allows reference to items at the same level or higher and not lower (the subreport).
A specific expression ( IIF() ) with an explanation would be appreciated. I have read numerous articles and tried them all with no results.

SSRS throwing an error when subreports have no data

I have an SSRS master report which includes multiple sub reports (with few parameters passed from Main report, sub reports have graph and tablix)
One of the combination of parameter's on sub reports results in no results in dataset on sub-reports. I have set no data message on these individual sub reports.
The problem is that when i run the main report with this combination it doesn't display this no data message but instead throws "An internal error occurred on the report server. See the error log for more details. (rsInternalError)" message
When I run these individual reports with same combination of parameters, I get the no data message displayed correctly.
I tried my best to find solution online, but couldn't find any.
Any help would be useful. Thanks in advance!!
My sub report was not having a data-set and as a result it was throwing an error on main report.
I added a dummy data set in my sub-reports, using an existing data-source with query.
SELECT ' ' AS DUMMY
and then added text box in my sub-report to display this dummy field.
=First(Fields!DUMMY.Value, "DUMMY")
and it worked after that. Basically I am forcing SSRS to display sub-report even if there is no data.

SSRS Query Based Parameters Not Refreshing

I am having a problem getting query-based parameters to refresh in SSRS when the View Report or Refresh button is clicked. To illustrate the problem, I created a report with 2 parameters. 1 parameter is set to get the timestamp Now() using the SSRS function. The other parameter is set to get the value GETDATE() from a SQL Server database query. When I view the report, both parameters accurately get the timestamp. When I hit the View Report button or Refresh, neither parameter refreshes. The only way I can get the timestamps to refresh is to re-open the page up in a new browser. Is there anyway to get these timestamps to update without having to open a new page/session? Thanks!
Fix: Build a main report with no parameters. Embed a subreport to your report. In the subreport, build a parameter called RandomTime. In the main report, go to Subreport Properties and feed the parameter RandomTime with the Value =Now(). To properly refresh all of the query based parameters in the subreport everytime you hit refresh, they must depend on RandomTime. The easiest way I found to do this add a column to the SQL query like this SLECT #RandomTime AS DummyColumn. It ensures that the query will repull and all the parameters will refresh everytime the refresh button is clicked
Do this: Create a master report and add your report as a sub report. Make a dataset on the master that runs your sql query. Then, pass the result into the sub report parameter as an expression.
Example--- =First(Fields!YourValue.Value, "DataSet1") ---

Parameter missing a value

I am new to reporting services and have a reporting services 2005 report that I am working on to use as a base report template for our organization. I am trying to place the date that the report was last modified on the report server into the page header of the report. However, I keep getting a 'ParamX' parameter is missing a value error when I try to This is what I have done:
Set up a Parameter ReportName with a default value of Globals!ReportName. It is also hidden and internal.
Set up a Dataset ReportHeader that calls a stored procedure that returns the date the report was last updated or another date, if the report is not on the report server. It has a parameter #ReportName assigned to the Parameter!ReportName.Value. The Dataset returns values when run on the dataset tab in the BI tool.
Set up a Parameter ReportVersion that has a default value Query From based on the dataset ReportHeader and picking the ModDate column. It is the last parameter in the report parameters list.
I assign a textbox to the parameter.
When I preview, I get "The 'ReportVersion' parameter is missing a value whether I place it in the report body or page header (which is where I want it). I have deleted and added the parameter again, toyed with the hidden and internal settings on it.
What does this error really mean, what I am missing, and can I even do this with parameters?
Thanks In Advance
Jim
If I understand what you're doing, it sounds like you want to be using a field where you're implementing a parameter...
You are returning the ModDate from the data source, correct? If you're doing this, you can simply throw a text box in there, and use something like this: =Fields!modDate.Value to display it.
Parameters are values that go in to the query, fields are what it returns.
Hope this helps...
EDIT:: OK so are you trying to retrieve the mod-date column value from the reportserver db? If that's what we're talking about, you'll need to add a few things to the report. Add a datasource to report db, a dataset containing the date (query below), a list object in the report linked to the dataset, and a textbox in said list object to display the field. If you hit the report server with a query like this:
SELECT MAX(ModifiedDate) AS ModDate FROM catalog WHERE name='myReportName'
That will return your modifieddate from the ReportSErvices Database as a field that you can use.