N neilmcmor Registered User. Local time Today, 18:08 Joined Aug 9, 2007 Messages 70 Oct 29, 2007 #1 Is it possible to have a form button disabled until a condition is true with other field values. I have a button, (appendbtn), that I want disabled until 2 fields, (Day) and (DayCheck) are equal.
Is it possible to have a form button disabled until a condition is true with other field values. I have a button, (appendbtn), that I want disabled until 2 fields, (Day) and (DayCheck) are equal.
KenHigg Registered User Local time Today, 13:08 Joined Jun 9, 2004 Messages 13,327 Oct 29, 2007 #2 Sure, put something like the following in the forms OnCurrent event: Code: if me!myControlName = "XXX" me.myButtonName.Enabled = false else me.myButtonName.Enabled = true end if
Sure, put something like the following in the forms OnCurrent event: Code: if me!myControlName = "XXX" me.myButtonName.Enabled = false else me.myButtonName.Enabled = true end if
N neilmcmor Registered User. Local time Today, 18:08 Joined Aug 9, 2007 Messages 70 Oct 29, 2007 #3 Its not working unles I switch it to design view and back. Could it be because the DayCheck field is unbound?
Its not working unles I switch it to design view and back. Could it be because the DayCheck field is unbound?
N neilmcmor Registered User. Local time Today, 18:08 Joined Aug 9, 2007 Messages 70 Oct 29, 2007 #4 Thanks I got it sorted now. Thanks for all your help, very much appreciated