Is it in a page refresh? If so, THIS refers to the page, not the pageframe. When do you actually want to disable or enable a page? If it is based upon the value of the NtcCheck field, then perhaps in that field's lostfocus would be better (you'd have to modify the code of course). Also put the below code in the pagegframe's refresh (in addition):
FOR EACH loPage in This.Pages
loPage.Enabled = loPage.Enabled
ENDFOR
>
>With This
> If ThisForm.InventoryChecks.NtcCheck.Value = .T.
> ._Page2.Enabled = .T.
> Else
> If .ActivePage = 2
> .ActivePage = 1
> EndIf
> ._Page2.Enabled = .F.
> Endif
>EndWith
>
>
>The above code runs in the Refresh method of Pages1 and should sometimes disable ._Page2.
>
>Well, it sort of does, but never initially, and not always subsequently - although the code does run and it appears the condition for disable is met.
>
>What might be I missing?
>
>TIA
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"