Hello Guys,
I have trouble understanding the IsNull process.
I have a CmdButton from a form that opens another form. I would like a message to pop up if there are no cr available to see. My code is on the "load" properties for the 2nd form and here is what I have. Can you please help me? :banghead:
Private Sub Form_Load()
Dim crname As String
crname = Me.EmpID.Value
If IsNull(crname) Then
crname = MsgBox("No Credit available", vbOKOnly)
Else
crname = ""
End If
End Sub
Thanks so much
I have trouble understanding the IsNull process.
I have a CmdButton from a form that opens another form. I would like a message to pop up if there are no cr available to see. My code is on the "load" properties for the 2nd form and here is what I have. Can you please help me? :banghead:
Private Sub Form_Load()
Dim crname As String
crname = Me.EmpID.Value
If IsNull(crname) Then
crname = MsgBox("No Credit available", vbOKOnly)
Else
crname = ""
End If
End Sub
Thanks so much