Hello all,
I have a bound checkbox that determines whether or not a tab on my tab control is visible using the following code:
Code:
If FTIR1Checkbox = True Then
Me.TabCtl689.Pages(0).Visible = True
Else
Me.TabCtl689.Pages(0).Visible = False
End If
My question is, how can I make my database run this code every time a different record is accessed? Currently, I've programmed it into a click event, so it only changes when the box is actually clicked. I tried OnLoad to no avail. I have some records where the box is checked and others where it's not, and I'd like the tab to automatically be visible or invisible based on whether the box for that particular record is checked.
Thanks!
-Dave