It isn’t necessary to add hidden text boxes to your form as Duane suggested. Since you are already referencing the form, set the control source property of the text box on your report to the combo box column property on the form.
I am using Access 2007 at work and the Control property of the combo box does not show when using the expression builder. However, if you are using the expression builder, you can select the combo box value and then add the .Column(1) to the end of the expression.
It would be a lot easier if you provided the names of your comboboxes and the control sources used on your report that should display their values.
Add two more text boxes on your form that already has your combo boxes. Set the control sources of these two new text boxes to reference the Column() property of the comboboxes
When you look at these in form view they should reflect the text value like "Bill".
Then change the text boxes on your report so their control sources reference the new text boxes rather than the old combo boxes. You can make the text boxes on the form invisible.
Duane Hookom, MVP
I wish I could follow you but I am not quite smart enough. I think I need a few more details to help me understand. I am not quite able to understand the concept.
You can add text boxes (invisible) with control sources of:
Then, in the report, use the names of the text boxes rather than the names of the combo boxes.
I have a few unbound fields on a form. Once the fields are filled in the user can click a button and a report opens with some of the fields already populated with the text from the unbound fields on the form. It was actually working pretty good until I changed a few of the unbound filed to Combo boxes. Now the user selects a value from the combo box. However when the report is opened I am getting an error, which I expected. What I want is to still show the text attached to the number behind the combo box.
So agent 2 is Bill, based on the table the combo box uses, If “Bill” is selected from the combo box, I know the value the combo box is holding is “2” which is what I want, but is there any way to open a form and pull the text “Bill” rather than the value 2?
There is no query or table behind the form as I do not want to store the values there. The unbound field will also be use to append some of the data to other tables, which is why I need the combo boxes, as that matches the data type of the table the data may be moved to.
The information contained in this communication is highly confidential and is intended solely for the use of the individual(s) to whom this communication is directed. If you are not the intended recipient, you are hereby notified that any viewing, copying, disclosure or distribution of this information is prohibited. Please notify the sender, by electronic mail or telephone, of any unintended receipt and delete the original message without making any copies.
Blue Cross Blue Shield of Michigan and Blue Care Network of Michigan are nonprofit corporations and independent licensees of the Blue Cross and Blue Shield Association.
Posted by: "Embrey, Darrell" <DEmbrey@bcbsm.com>
|Reply via web post||•||Reply to sender||•||Reply to group||•||Start a New Topic||•||Messages in this topic (7)|