Disabling a Combobox

MichelleG

MichelleG
Local time
Today, 23:16
Joined
Aug 5, 2005
Messages
5
Just wondered if you might be able to help. I have a form on which I would like to disable some comboboxes until a date box is filled in. Is this possible?

Not too hot with coding - but I have been trying and If Then Else method.

Is this the right way to go?

Thanks
Michelle :confused:
 
why does this not work??


Private Sub Left_internal_jugular_vein_AfterUpdate()
If Me.Date_of_Neck_USS.Value = Null Then
Me.Left_Innominate_Vein.Enabled = False
Else
Me.Left_Innominate_Vein.Enabled = True
End If

End Sub

Michelle :confused:
 
It sounds like this should be in the after update event of the Date_of_Neck_USS field.
 
Try this:

if IsNull (Date_of_Neck_USS.Value ) = true
 
Still can't seem to get it to work.

What if I were to say enable these if there is something in the date box? Would that work? ( I wouldn't know how to do it mind!)
 
Did you set the enabled property of Left_Innominate_Vein to false in the property sheet?
 
Well spotted - I had changed it on the wrong control - works like a treat now - thank you all.

Michelle
 

Users who are viewing this thread

Back
Top Bottom