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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbee - setting value in text box

Status
Not open for further replies.

rcoutts

Technical User
Sep 5, 2001
60
US
I have a table (TimeCard) with a field (EmployeeName.) One form (SetEmployeeInfo) sets the employee name, number, etc. I want a second form (TimeCardForm) to load up the employee name and put it in a label at the top, so that when someone's looking at the time card, they can see who's it is, but can't change the info without going through the SetEmployeeInfo form. I'm having a heck of a time doing this, being that I'm a newbee and all. It appears to me that you must enter the information in a Label by hand and can't load it based on a Field. So, I tried to use a Text Box, but it kept giving me a Combo Box that I could change the employee name. That's actually okay in a sense because I can disable it, gray it out, and it essentially becomes a Label, except that I couldn't seem to get the downward arrow button of the Combo Box to disappear, so it looked a bit odd.

I'm not sure how to proceed. Any advice will be greatly appreciated.

Thanks!
Rich
 
First of all, a label is just a caption. You can not store values from fields in it.

Open your form in design view, right-click on the combo box and select "change to". Choose text box. Is that better?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top