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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top