Changing combo box

  • Thread starter Thread starter Maracay
  • Start date Start date
M

Maracay

Hi gurus,

I have a combo box, cmbCountry, I shouldn’t be able to modify the data in
this combo box if the texbox txtState have some data, if txtState is empty if
ok to modify the data in cmbCountry.

Thanks
 
Hi gurus,

I have a combo box, cmbCountry, I shouldn’t be able to modify the data
in this combo box if the texbox txtState have some data, if txtState is
empty if ok to modify the data in cmbCountry.

Thanks

Me.cmbCountry.Locked = Not IsNull(me.txtState)

You need to run that code in both the Current event of the form and the
AfterUpdate event of the txtState control.
 
Back
Top