I have a subform ‘FrmForwardAddView’ which contains a field ‘ForwardAddID’. The main form is called ‘FrmLiveApplicantView’.
If ForwardAddID is null (no record exists) then I’d like a button on the main form ‘CmdOpenFrmSmallView’ to be visible otherwise it shouldn’t be visible.
I’ve tried the following on the OnOpen event of the main form but it doesn’t work.
I’d be ever so grateful if someone would let me know what’s wrong with this code.
If IsNull (Forms!FrmLiveApplicantView!FrmForwardAddView.Form!ForwardAddID) Then
Me.CmdOpenFrmSmallView.Visible = True
Else
Me. CmdOpenFrmSmallView.Visible = False
End If
Many thanks in advance
If ForwardAddID is null (no record exists) then I’d like a button on the main form ‘CmdOpenFrmSmallView’ to be visible otherwise it shouldn’t be visible.
I’ve tried the following on the OnOpen event of the main form but it doesn’t work.
I’d be ever so grateful if someone would let me know what’s wrong with this code.
If IsNull (Forms!FrmLiveApplicantView!FrmForwardAddView.Form!ForwardAddID) Then
Me.CmdOpenFrmSmallView.Visible = True
Else
Me. CmdOpenFrmSmallView.Visible = False
End If
Many thanks in advance