Togle button in subform

  • Thread starter Thread starter SF
  • Start date Start date
S

SF

Hi,

I have a subform with a button on each row for opening detail record on
specific row id when click. I want to toggle Enable and disable this button
base upon a value of field MA_AllowanceID. I cannot make the code below to
wot=rk, what Event must I use?

If IsNull(Me.MA_AllowanceID) Then
Me.btnOpen.Enabled = True
Else
Me.btnOpen.Enabled = False
End If

SF
 
Hi SF,
code like this usually goes in the On Current event of the form.


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
 
Back
Top