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

Combo Box ?

Status
Not open for further replies.

jeremy0028

Technical User
Oct 9, 2005
37
0
0
US
I have a combo box called Primary which has Yes/NO

I have a Text Box called Text50

If user selects Yes From the combo box then the Text Box will show P
If user selects No From the Combo Box then the Text Box will show S


Any Ideas
 
On the AfterUpdate event of the combobox put:

Private Sub Primary_AfterUpdate()
If Me![Primary].Value = "yes" Then Me![Text50].Value = "P"
If Me![Primary].Value = "no" Then Me![Text50].Value = "S"
End Sub

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top