Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read-Only Text Box to Update Combo Box

Status
Not open for further replies.

Debbilynn

Technical User
Dec 8, 2008
8
US
I have a form (frmSysProb) tied to a table (tblSysProb). This table has the field cboEmp tied to table tblEmp for employees assigned to each system problem. I am setting up this form to open in Read-Only mode with a command button to change to Edit mode. (All is well there.) Ultimately, what I would like to see in the Read Only mode is my cboEmp data showing as a text field but when changed to Edit mode, I want the combo box back. What code would I put behind my command button to execute this?

Thanks!!!
 
Never mind. I decided to put the combo box over the text box then set the cboEmp.visible to False and switch it out when I change over to Edit mode, and vice versa. If anyone knows of a better way, please let me know. I'll be doing this again with some other controls.

Debbilynn
 

Why do you feel the need for having the data displayed in a textbox when it's Read-only? Why not just leave the combobox? If the form is Read-only the combobox cannot be used to change the data.

The Missinglinq

Richmond, Virginia

There's ALWAYS more than one way to skin a cat!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top