I can't seem to make this work. I have a new form with several checkboxes on several pages linked to an existing table. I'm using the following code in the On Load even of the form to activate textboxes that correspond to the checkboxes:
If Me!chkSomething= -1 then
Me!txtSomething.enabled=true
Else
Me!txtSomething.enabled=false
End If
This works for the checkboxes on the active page of my form but not any of the others. I've tried using Me!TabCtl!Pages(1)!chkSomething where TabCtl is the name of the Tab Control and (1) is the Page Index of the page with my checkbox.
What is the correct way to refer to controls on other pages in a tab control?
If Me!chkSomething= -1 then
Me!txtSomething.enabled=true
Else
Me!txtSomething.enabled=false
End If
This works for the checkboxes on the active page of my form but not any of the others. I've tried using Me!TabCtl!Pages(1)!chkSomething where TabCtl is the name of the Tab Control and (1) is the Page Index of the page with my checkbox.
What is the correct way to refer to controls on other pages in a tab control?