Jump to content
Sign in to follow this  
Henry Olive

Disable DBComboBox

Recommended Posts

I wish everyone a healthy day.

I have  DBComboBox1 with 2 Items (Open, Closed)

I have another DBComboBox2 which it is Field Name=ClosedDate

I dont want user to fill Closed Date Field if DBComboBox1.Text=Open

So I wrote below code

DBComboBox2.Enabled :=DBComboBox1.Text='Closed';

Which event is the best place to put above code ?

Thank You


Share this post

Link to post

OnFieldchange for the field linked with dbCombobox1. I would also compare the field value, not the DBCombobox1.text.

  • Like 2

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this