I have a report ("rptEstimate") used as part of a larger program that runs in Access. This report has a text field, with the expression =Nz([txtTaxTotal],0)+Nz([txtSubTotal],0). Where can I find the value for txtTaxTotal and txtSubTotal? Is there some way to see which tables are linked to a specific report?
I'm looking to export those values to a spreadsheet, probably via Excel VBA but I need to isolate them first.
Any help would be greatly appreciated!
Look for the record source of the report. In design view, you will find it on the property sheet on the data tab. In addition, check for a control on the report called txtSubTotal, this may be bound to a field from the record source. You can select the name of a control on the property sheet, and the control itself will be highlighted.
Related
I want to eliminate page number value from the report only when tries to generate CSV file. But also we need that page number display when tries to generate pdf. Can anyone help me through this.
Crystal Report Verion:13.0.2000.0
One option you could use to achieve this would be to create a parameter fields that asks the user if they want page numbers on the report each time the report is run. You can also include text that helps indicate not having page numbers is recommended for CSV file exports of the report.
The parameter field should provide an option for the user to choose Yes or No. You can default the answer to one of the two values to help speed up parameter value selection at run-time.
Then you use this parameter to control the Suppress property of the page number fields.
If you need help with setting up the parameter or the formula for the Suppress property, let me know in a comment and I can update this answer with more detail.
I need to add a filter to a Report, that within anotherreport, the filtered results appear in the drilldown report.
For example: An .rdl file displays the first report, in that report a link can be clicked to access another report (.rdl) file. The report that displays after clicking link should be filtered by option selected from the first report(.rdl).
How could this be done? My thought that two datasets in each report could provide the information for the filter, however the filter expression is not valid this way...? I know this may not be the best way to do this.
So creating a drilldown report would be more acceptable. Creating one report and including a dataset with it by setting parameters to be called in the drilldown.
Does there need to be two datasets for each report to do this? I was assuming that the filter expression be written to do this: Field!.name.value AND Field!.name.value, etc to the whatever value I need to compare to or by.
Could this be a shared dataset to do this?
I was able to solve or partially solve this. I created a new report, with a query with the necessary columns that I needed in report 2. The drillthrough report(report 2) is linked from a textbox from a report allowing a user to view the information they need by clicking a link that displays the new report(passing the parameters from report 2 to the new report). If anyone has trouble with this, the simplest way would be to create one report and pass parameters to report two with parameters created from whatever query you want to use that has the values you want as columns in the report.
I have a form that is linked to a table in Access. I have an additional field which displays the sum of a few fields in the table. This field on the form is not connected to the table. I have the sum displayed on the form but what I noticed is that the sum does not appear until I move away and navigate to another record and come back to the original record. I don't see the addition as soon as I enter values in the respective fields.
Can someone help with this issue?
It sounds like you need to add some code to the After Update events of the controls for the fields used in the sum. That code can call the .Refresh method of the control that performs the calculation and update the total.
Edit
Another possibility is that there could be ambiguity between control values and field values if they have the same name. In Design View for a report if you drag a field from the "Field List" and drop it into a report then Access creates a report control with the same name as the field. This can confuse matters later because if any expressions refer to =[SomeColumn] it's not clear whether that refers to the field or the control. Often simply renaming the controls to something like txtSomeColumn can help if a report is acting strangely.
I have made a report using the report wizard in MS Access. After generating the report I realized that I want to add another value from table (the table is already being used within the report) that I did not include in the report wizard when I generated the report. I have tried adding the new value using the control source option, but it has failed to show up. Please assist in any way you can! Thank you so much for your time. The value I want to add is in table 'tblAuthor' value 'Genre'.
Open the report in design view and check the Record source for the table. If it is a query, you can use the three dots (...) to edit it and ensure it includes Genre. If it is a table, presumably Genre is included. You can then use Add Existing Fields to add a control to the report.
I'm in the process of converting a MS Access 2000 database to MySQL, while still using Access for the front end.
I've come across a problem where some forms get the data from fields in MS Access tables. IE, the "Control Source" value is set to a specific field, and when the form is run, its creates the required number of Textboxes to match the number of entries in the table and populates them with the data from the tables.
Now I'd like to be able to set the Control Source of the Textbox to call a VBA function, which get's the data from MySQL, and populates the textbox with the entries in MySQL table. I'm not sure how this is achieved, or if its even possible.
So could I just create a VBA function and set it in the Control Source property for the Textbox, or do I need a more complicated solution ?
You do not need any code for the text boxes to display. Simply use a linked table to MySql, and the form should function as before. There is little if any reason I can think of here to dump the use of bound forms and bound controls.