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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inactive button till field is filled 1

Status
Not open for further replies.

Zeroanarchy

Technical User
Jun 11, 2001
630
AU
I know this is pretty simple but some times u find easy things hard and hard things easy.Some times u just start to think complex.

All I am trying to do is make a button inactive until a value has been placed in a field. Thanks to anyone in advance for your help on this one.
 
Set the Locked property from the button to True

Use the AfterUpdate event on the textfield to change the buttonproperty Locked from True to False

In Code:

If Nz(Me.[textfield]) = "" Then
Me.[name button].Locked = True
Else
Me.[name button].Locked = False
End If

Hope this helps....

Grtz,

Kalin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top