J
Jenny Kurniawan
I have the following code
What I want to do is: to "convert" NULL-Value textboxes to EMPTY string.
Problem: When the textbox has NULL value, I got error message:
Error 94 Invalid use of NULL
I know where the problem is (See below) but I just don't know how to fix it.
TIA - Jenny
Private Sub cmdCancel_Click()
Dim ctl As Control
For Each ctl In Form_Product.Controls
With ctl
If .ControlType = acTextBox Then
If IsNull(ctl.Value) Then
ctl.Value = " " <-- PROBLEM
End If
End If
End With
Next ctl
End Sub
What I want to do is: to "convert" NULL-Value textboxes to EMPTY string.
Problem: When the textbox has NULL value, I got error message:
Error 94 Invalid use of NULL
I know where the problem is (See below) but I just don't know how to fix it.
TIA - Jenny
Private Sub cmdCancel_Click()
Dim ctl As Control
For Each ctl In Form_Product.Controls
With ctl
If .ControlType = acTextBox Then
If IsNull(ctl.Value) Then
ctl.Value = " " <-- PROBLEM
End If
End If
End With
Next ctl
End Sub