Hi,
When a form opens and the subject id field is blank, I want a command button to be hidden. If the subject id is filled in I want the button to show. The code I have below is not working - the button is visible if the subject id is blank or is filled in. Any ideas?
Thanks,
Ad2
'Private Sub Form_Load()
' If IsNull(SubID) Then
' cmdReport.Visible = False
' Else
' cmdReport.Visible = True
' End If
'End Sub
When a form opens and the subject id field is blank, I want a command button to be hidden. If the subject id is filled in I want the button to show. The code I have below is not working - the button is visible if the subject id is blank or is filled in. Any ideas?
Thanks,
Ad2
'Private Sub Form_Load()
' If IsNull(SubID) Then
' cmdReport.Visible = False
' Else
' cmdReport.Visible = True
' End If
'End Sub