MS Access 2013 Query Error - ms-access-2013

I have been working on some queries of MS Access 2013 but i am getting some errors, i applied this query but its says "Enter the parameter value" any help would be appreciated.
Like "*" & [Forms]![Master List of PMA Membership Form]![SR#] & "*"
but it does not returns all the value, while pressing on search button from the Form Page and in my Excel table some values are empty some contains value. In earlier project i tried this query it worked fine, but in this case i don't know why its not working. I am Uploading a sample table data picture for reference.

Related

Crystal Report not filtering SQL records based on selection formula

unfortunately I'm not an expert of Crystal Report, so I'll post here my question hoping for any help about my issue.
I want to display inside my report the result of a filter on a SQL RecordSet; this RecordSet is looked up from an a single table, of which I want to show some fields of my SQL table, while the filter I want to apply is based on a field parameter (defined static) that I'm trying to set programmatically.
Here below I attached my code where I'm applying the record selection formula, I tried also hard-coding the value instead of passing it through a dropdown selection:
ReportDocument RPT_Doc = new ReportDocument();
RPT_Doc.Load(RPT_Path_Name, OpenReportMethod.OpenReportByDefault);
ApplyConnInfos(ref RPT_Doc);
RPT_Doc.SetParameterValue("data_riferimento", "20161001");
RPT_Doc.RecordSelectionFormula = "{viaggi.data_part_pre} = '20161001'";
crystalReportViewer1.ReportSource = RPT_Doc;
In the first image attached you can find the field parameter definition, while second image is the record selection formula I defined inside my report:
The report always shows all the records of my table (more than ten thousand rows), instead of displaying a filtered RecordSet. The odd thing is Preview function from Visual Studio works like a charm; it prompts the field value, once I confirm the value the viewer displays the report with the rows filtered as I expect..
What am I missing from report/C# program configuration to make the record selection work?
Thank you in advance for any suggestion you can give me :)
Leonardo
Ok, finally we got the solution to our issue.
We found the CrystalReportViewer object used to display generated reports has 2 different properties, SelectionFormula and ViewTimeSelectionFormula; both has default value set to empty string.
Below I attached the picture of .Designer.cs file with the 2 properties valued:
We commented those 2 properties and the selection formulas and field parameters applied through code / report designer worked again.

Oracle Form 12c field showing hash instesad of number

I am working on Oracle forms 12c and facing an issue with few fields showing as hash(####) values instead of number field on data block when saving changes by clicking on SAVE (commit) button.
Also showing below error
(FRM-40735 KEY COMMIT Trigger raised unhandled exception ORA-01483)
it seems that it is due to change of field item from number to HASH (string)
For further information:-
-Fields are database items
-Trying to insert value in database fields by entering value on field.
-Size of fields are more than entered number value.
-on re-querying data block using (f7 & f8) data is showing correctly as number.
-Not able to recreate this issue on different database(working fine on other database)
is it something related to environment issue or minor bug while coding?
If the Returning_Dml_value property on datablock is set to Yes,it sometimes causes junk values to be populated and asks a requery on block. Try setting it to No instead.I faced a similar issue once and it got resolved by setting Returning_Dml_value property to No.
The following blog explains more about this property of Oracle forms:
http://cave-geek.blogspot.co.uk/

SSRS URL Access passing a parameter that has a dataset

I am trying to build an url to make the job of going to the SSRS page a bit faster and to eliminate all the input a user has to do (he already did it in an other program.
When I use this url:
http://localhost/ReportServer/Pages/ReportViewer.aspx?/folder/subfolder/reportname&rs:Command=Render&customerId=1000002
I can't fill out the parameter that has query where the default values of the parameters are found in the database, when i remove the query behind the parameter the textbox is filled out and the report is working as expected, i am sure the value of custimerId is in the database
How can I solve this?
I found it.
Data i got back from the database contained some trailing spaces. After removing those it worked like a charm.

Sub Report with a view type datasource returns empty when a parameter is passed

I have a crystal report with few sub reports . i am passing an id to each sub reports as a parameter . So far, three of the four sub reports are fine. But one of them returns empty when ever a parameter is passed. All the sub reports used view type data source
The sub report link between the main report and the sub report that fails is set as below
under the sub report section formulas.
{CONTACTNUMBERVIEW.debtorid} = {?Pm-JobSheetReport.id}
The {CONTACTNUMBERVIEW.debtorid} is a column in the subreport and the {?Pm-JobSheetReport.id} is from the main report. It always returns null. However when i remove the parameter it returns record. I take the id to the view and it shows three records.
I am really confused, where did i go wrong? I did everything i could remember. Please any help would be appreciated.
To the extent I see this {CONTACTNUMBERVIEW.debtorid} = {?Pm-JobSheetReport.id} linking is the problem... where it is returning zero records... try to link the correct field that produces records.
Edit:---------------------------------------------------------------------------------------------
Check the query generated by the sub report and run it against the database to spot the issue that the report is generating.
Since you are able to see the data when adding the field to view perform the same operation on generated query so that you will get the idea on what to make change in crystal with respect to query.
Perform both operations that will solve the issue.

Browse field data shows value, but displays another value

I have a formula written for a field in Crystal Reports. When i refresh the report, i get a different value from the formula. The required value is always the last value in Browse Field Data dialog for that formula.
Isnt the formula supposed to have only one value as output? why are multiple values shown in browse field data dialog.? Is there a way to retrieve last value of Browse File Data dialog?
My formula looks like below:
WHILEREADINGRECORDS;
NumberVar CODTOTAL;
if {XXX.YYY} = 1 then
( CODTOTAL := CODTOTAL + {XXX.ZZZ};
);
CODTOTAL;
Browse field data shows all the values "CODTOTAL" acquires as a result of that formula and displays a random value amongst the assigned value.
Please help me out. I am amateur in crystal reports.
Any help would be highly appreciated.
~Regards.
First observation should be where have you placed the formula (Details, Footer.. etc).
why are multiple values shown in browse field data dialog.?
Browse field shows the data that is present in the table but in your case you are applying "If" condition of the filed. It can be possible that there is only one record that satisfies your condition.
I would suggest to run the report without the codition, Check the results and apply the condition and check results again.

Resources