I have the following on a form with a subform:
Private Sub Form_Current()
If IsNull([txtDocNum]) Then
Me.frmDocumentSubform.Enabled = False
Else: Me.frmDocumentSubform.Enabled = True
End If
End Sub
I thought it was working, but when I do enter a DocNum, it doesn't release the subform without changing records first.
How do I do this? Besides an AfterUpdate in DocNum? Shouldn't I be able to do it in On_Current? To make sure a DocNum isn't entered, then erased later, which would unlock the subform?
Thanks. Sean.
Private Sub Form_Current()
If IsNull([txtDocNum]) Then
Me.frmDocumentSubform.Enabled = False
Else: Me.frmDocumentSubform.Enabled = True
End If
End Sub
I thought it was working, but when I do enter a DocNum, it doesn't release the subform without changing records first.
How do I do this? Besides an AfterUpdate in DocNum? Shouldn't I be able to do it in On_Current? To make sure a DocNum isn't entered, then erased later, which would unlock the subform?
Thanks. Sean.