Textbox updated by other control AND bound?

Montez659

Well-known Member
Joined
May 4, 2005
Messages
918
It's been a while since I've been here, but alas, we all always return to our programming ways.

Can't seem to find what seems to be a simple thing - probably just can't figure out exactly what to search for.

I want a textbox updated from a combobox - easy enough:

Code:
=[cmbContact].[Column](0))

But I also want it bound to the CT_ID field on the form. Essentially, the user chooses a contact from the combobox, and the Contact ID field gets updated on the form and saved into the db.

Simple enough, or so I think. Thanks in advance!
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Well, not sure why I was making it so tough. I just added some VBA on the AfterUpdate event that looked like this:

Code:
txtCT_ID = Me.cmbContact.Column(0)
Me.Dirty = False
 
Upvote 0

Forum statistics

Threads
1,221,893
Messages
6,162,662
Members
451,781
Latest member
DylantheD

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top