Displaying Query Results in Microsoft Access with no VB - ms-access-2016

I would like to run a query using a macro and display the results in a message box. The aim is to be able to pass the value as a parameter to another form in the database. First I want to be able to see the value returned from the query. I would then like to set a temp variable to this value so I can pass it as a parameter.

Related

Parameter based on SP is missing a value SSRS Visual Studio 2015

1- I have a shared dataset that gets style properties from SQL server by calling a stored procedure. These are, for example, a field with an array of color codes.
2- I load the shared dataset within a dataset embedded in my report ("use a shared dataset").
3- I create a hidden parameter "color" which available values are set to None; Default values are set to "Get values from a query" and value field is set to the color array in question.
When I run the report, I get the "parameter is missing a value" exception. What's weird is that I have another report running the same settings that works perfectly fine.
Any tips?
You need to have both the Available Values and Default Values pointed to the query. Also check the "Allow multiple values" setting in your parameter properties. Depending on how you're using the parameter values throughout the report, you may need to make use of the Join and Split functions to pull out the individual values from the array, but that would be a separate issue.

Is it possible to replace the value of a sessionVariable in mule for each iteration

I am trying to retrieve some values from the database. Out of which one field is encoded by base64. I need to produce the result by decoding that field. When the Database returns multiple rows as the result I am not able to fetch the decoded value for all the rows. I am using a foreach scope and iterating within the payload and saving the result in a SessionVariable. I am able to save the first row's decoded value. Other all row's values are printed as same as in the Database. Could someone help to resolve this.
i would suggest not to use sessionVars for each iterator...create a POJO equivalent to the Database and then create a ArrayList of that POJO. This will help in the performance as well as in logic.
The problem is the way you are using mule
mule <base64-decoder-transformer/>
ideally in you case it should be inside the for-each loop.

Multiple field values to subreport error

I have a parent report that feeds one of the field values into a subreport. But the problem is that there this field value can include multiple records. For simplicity, assume that this field value is called color, where possible values might be orange, red, and green. I need to pass all of these value to the subreport, not just one. I have tried passing the values this way into the Color parameter of the subreport:
=Fields!Color.Value
But this doesn't work and gives me an error. I have also tried:
=join(Fields!Color.Value,",")
This also gives me an error on the subreport
I have also tried both of the above as an expression in a textbox in the parent report and I get #Error displayed on the parent report. I was able to successfully get just the first value to appear by using a similar expression and the First function. But I am not able to get all of the values to display in this textbox on the parent report? how can I do this or at least pass all of the values to this subreport?
The easy solution is if Color is already a parameter - I would pass this expression in the subreport:
=Parameters!Color.Value
If Color is not a parameter, I would add a column to the driving dataset in the parent report using a SELECT ... FOR XML to concatenate the relevant Color values together. Then you can pass that field to the subreport.

Combine multiple columns containing similar values into one column for use in graph inside Crystal Reports

I have 3 fields, Action1, Action2 and Action3 contained in one report. Each Action field is selected from the same list of values. I would like to graph a count of these values by the value of the field and not field itself. I need one graph and not one graph per Action field. I have tried to combine the field values into an array in the details section, but the report shows the concatenated string values "Action1, Action2, Action3', as a single value in the graph. I tried to graph using "on change of", but it will only allow 2 fields and not 3. Is there a way to count these values regardless of the Action field where they are found?
I have been working with Crystal for years, but can't figure this out for whatever reason.
I was never able to find a solution to this issue inside of Crystal Reports itself. What I ended up doing was creating a stored procedure in SQL to use as the data source. In the stored procedure I basically performed a cross join such that there was only 1 Action returned per record. In CR I then was able to summarize the Action field values.

FastReport: Summary on ReportTitle

I have a report with these parts:
ReportTitle
ColumnHeader
MasterData
ColumnFooter
ReportSummary
How can I display sum of a field in MasterData on ReportTitle?
I can see two possible ways:
Via a report variable:
Calculate the total separately.
Pass the total to the report using a report variable (and, possibly, the TfrxReport.OnGetValue event).
Via the DoublePass property of the report:
Set the TfrxReport.EngineOptions.DoublePass property to True.
Calculate the total in the report script and store it to a script variable on the first pass
Fill the memo from the variable on the second pass.
Use Engine.FinalPass in the script to detect whether it's the final (second) pass.
Define a variable for sumatory
Asign sumatory to variable on first pass of report
Show variable on second pass
Or, if the sumatory is result of a query, get this result and show it

Resources