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!

Disabling Enabling buttons works!.....Initially :(

Status
Not open for further replies.

DBSSP

Programmer
Apr 1, 2002
327
US
I've been trying to disable a button when information is input to a certain field, and enable it when the field is empty. This works when form is first loaded, but doesn't disable the button when you put information in the field. I've tried On Dirty, On Current, even tried it on Mouse Move just to see what would happen...My code is below.

If Me!txtAccountNumber <> Null Then
Me!ClsScrn.Enabled = False
Else
Me!ClsScrn.Enabled = True
End If


Any ideas?

Jay [infinity]
&quot;If the words up and down were reversed, would you trip and fall or trip and fly?&quot;
 
Hi Jay!

Put the code in the after update event of the ClsScrn control as well.

hth


Jeff Bridgham
bridgham@purdue.edu
 
Did you perhaps mean the AfterUpdate of the txtAccountNumber control?
 
Hi beetee!

Absolutely! I guess I was looking at that one crosseyed!

:)

Thanks

Jeff Bridgham
bridgham@purdue.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top