Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Enable and disable command button

Status
Not open for further replies.

yankinsf

Technical User
Sep 25, 2003
15
US
Hi:

I would like to to able to enable or disable a command button which is next to a text box, only when the text field's value is changed. This text box is a combo box with a value list.
Can anyone please help with the VB code?

Thanks
Sam
 
You could try the following in the After Update of the specific field.

Private Sub Account___AfterUpdate()
If Nz(Me![NameofTextbox]) = "" Then
Me![NameofControl].Visible = False
Else
Me![NameofControl].Visible = True
End If


This concept should give you a good idea what to do.

HTH

An investment in knowledge always pays the best dividends.
by Benjamin Franklin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top