Re: Disable Button If
- From: strive4peace <strive4peace2006@xxxxxxxxx>
- Date: Thu, 15 Mar 2007 13:47:41 -0400
yes,
you can use the form current event to test values:
'~~~~~~~~~~~
Private Sub Form_Current()
dim mBoo as boolean
mBoo = true
if me.controlname = somevalue then mBoo = false
if me.fieldname = somevalue then mBoo = false
if someOthercondition then mBoo = false
'etc
me.CommandButton_controlname.enabled = mBoo
End Sub
'~~~~~~~~~~~
you can use the AfterUpdate event of particular control to switch the enabled status during form entry
Warm Regards,
Crystal
*
(: have an awesome day :)
*
MVP Access
Remote Programming and Training
strive4peace2006 at yahoo.com
*
Supe wrote:
Is there a way to Disbable a Button if there is any information in any of a number of different fields?.
- Prev by Date: Re: Please help!
- Next by Date: Re: Conditional formatting
- Previous by thread: Using one field to poulate others
- Next by thread: Re: Disable Button If
- Index(es):