Access form with individual record check boxes - ms-access

I'm trying to have my access reports have check boxes that if you check one box in report view that one will be the only one that is checked. Currently if I add a check box in the design view and click it in the report view all of the check boxes in the report will add or remove a check mark, not just that individual box for that one record. I am unsure if there is a line in the property sheet that I am missing or that I'm missing something else completely.

Specify a control source for the checkbox. You need to hold the value for each separate checkbox alone.
A checkbox without a control source (Under Data Tab in Properties) will show the same value for all records of the report record source (This is the same for forms).
For example, if you have a report showing Client Number and Client Name for all your clients, and you need to add a checkbox near each record, then the value for the checkbox should be bound to a control source from the report record source. So in the record source you should have the fields: client number, client name, and checkbox Value.

Related

Add a Drill down to secondary report in Report Builder

I have written two reports in Report Builder. both reports use data from a property table so have unique identifiers eg Property ID.
I am trying to create a drill down from report A so that when you click on a row, it will open up a sub report that will show data from the sub report (Report B) that is specific to the property.
Both reports have the unique identifier EG. Property ID.
I can see how to add a sub report by going to Text box properties, selecting "Action" the selecting "Go to report" but that then opens up the complete report showing numerous properties rather than just the property that I click on.
My question is therfore how do I add a drill down to a second report that only shows the data if the Property ID's match?
I can't seem to find any guides online for this.
Thanks
You need to add a parameter in the properties of the Action.
The name should be the name of the parameter in the report you are linking to. The Value would be that Property ID you have. This way the sub-report will have the parameter value populated as soon as it loads. You can even choose to make it hidden at that point.

Does deleting an automatically generated label on a report add to the number of fields used on that report?

I have created a report in designer view using MS Access 2013 on which, when I attempt to switch to Report View, I get the error Too many fields defined. There are quite a few fields and controls on the report, but not 255, and so I am trying to recreate the report to see if the problem was in my changing and deleting fields and controls along the way. However, in my new report, every time I add a field, a label is automatically also added, which I then need to delete.
Does deleting this automatically generated label add to the number of fields defined and, if so, is there a way to stop the program from automatically generating the label?
I doubt that deleted labels count for the limit (not sure if labels count at all).
Although this article: Tables: "Too many fields defined" error message indicates that deleted fields do count for tables.
The problem may also be in your datasource, if it contains many expressions/calculations, see here: http://www.utteraccess.com/forum/Fields-Defined-t1924641.html
Anyway, to add e.g. new textboxes without labels:
Select a textbox without label
In Design - Controls, click Set Control Defaults
Alternatively, with the properties sheet open, click the "Add Textbox" button in the ribbon (the property sheet changes to "Default Textbox"), and set the AutoLabel property to No.

textbox in continuous form populated from different table

I have a continuous form in an access 2010 database that outputs a separate row of data for each customer from a customers_table. The continuous form is for data display only, and no data entry or editing is allowed. One of the textboxes on the continuous form is populated with data that was entered using a combobox in a different form used for data entry. In the textbox on the continuous form, enabled is set to no, and locked is set to yes, so that the textbox is not editable in the continuous form. However, in the separate data entry form, the combobox entered the id for the selection the user chose, instead of entering the text. Therefore, in the continuous form, only an id number is shown, when the user needs to see the text of the specific option which is encoded in that id number.
I think I want to keep the id in the customers data table, in order to retain freedom to make subtle changes in the combobox options later.
So how do I modify the textbox in the continuous form to populate with the textual value associated with the id number? This would seem to involve some sort of SQL like:
"Select textValue FROM comboboxsource_table WHERE comboboxsource_table.ID=textbox.Text"
However, I have no idea where to put this in the Access GUI. The Control Source field in the Data tab of the property sheet for the textbox does not seem to allow this sort of syntax.
If you're not editing the data, put a query behind the form instead of a table. Then, just pull the field you need into the query and VOILA! Problem solved. :o)

Textbox calculation appears only after navigating through other records in access

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.

Access Combo Box based on Form Record Source

I have a combo box that I want to display options based on the record source of the form. However, the record source is dynamic rather than static (i.e. it changes while doing certain things). How can I make it so that the combo box requeries itself based of what the record source is at any point in the process.
you can use the requery methode:
combobox.Requery