T
Tatakau
I have several buttons that I'd like to enable/disable based on certain
conditions. I think I have the Save Record and Undo Changes buttons figured
out, but I'm having trouble with buttons for a filter form that I made.
The main form has 2 buttons: "Filter Records" and "Remove Filter". I would
like to have the "Remove Filter" button disabled (greyed out) if there is no
filter applied. Is there a flag that I can check to see if the records are
being filtered? I'd like to do something like this:
private sub cmdRemoveFilter_NoFilterBeingUsed()
Me.CmdRemoveFilter.Enabled = False
end sub
private sub cmdRemoveFilter_YesFilterBeingUsed()
Me.CndRemoveFilter.Enabled = True
end sub
Maybe there's a more simple way of doing this...
Thanks,
Nick
conditions. I think I have the Save Record and Undo Changes buttons figured
out, but I'm having trouble with buttons for a filter form that I made.
The main form has 2 buttons: "Filter Records" and "Remove Filter". I would
like to have the "Remove Filter" button disabled (greyed out) if there is no
filter applied. Is there a flag that I can check to see if the records are
being filtered? I'd like to do something like this:
private sub cmdRemoveFilter_NoFilterBeingUsed()
Me.CmdRemoveFilter.Enabled = False
end sub
private sub cmdRemoveFilter_YesFilterBeingUsed()
Me.CndRemoveFilter.Enabled = True
end sub
Maybe there's a more simple way of doing this...
Thanks,
Nick