enable combobx

krishnanhemanth

Registered User.
Local time
Today, 14:08
Joined
Jun 12, 2009
Messages
115
hi every body
i have 2 comboxes on a bound form
combobox2 is based on combobx1
i want the combox2 to be enabled only if combox1 has a value

please help me

hemanth
 
Try something along the lines of;
Code:
If IsNull(Me.combobx1) Then
     Me.combox2.Enabled = False
     Me.combox2.Locked = True
Else
     Me.combox2.Enabled = True
     Me.combox2.Locked = False
End IF
You will need this code in the form's On Current event and also in On Change event of combobx1.
 
thanks for the reply

i get an error

runtime error 424

object required


its pointing at form current
 
Any chance you can post a copy of your DB? (2003 version if possible) and I'll take a look at it for you.
 

Users who are viewing this thread

Back
Top Bottom