I am using a combo box to present a list of items in a form.
My intentions are to allow Blank input (not required entry), or data from the list. If data is not in list, default entry to blank or error message.
**************
I have tried using following events to replace data if null with a blank:
Private Sub ThisComBox77_BeforeUpdate(Cancel As Integer)
If IsNull(Me!FBTSC.Value) Then
Me![FBTSC.Value] = " "
End If
End Sub
Private Sub ThisComboBox_NotInList(NewData As String, Response As Integer)
If IsNull(Me!FBTSC.Value) Then
Me![FBTSC.Value] = " "
End If
End Sub
***********************
I continue to get tried to error " you tried to assign Null value to a variable that isn't a variant data type."
This data field comes from a linked query/table(AS400/DB2).
How do I handle null condition? (i am very new to MS Acess)
My intentions are to allow Blank input (not required entry), or data from the list. If data is not in list, default entry to blank or error message.
**************
I have tried using following events to replace data if null with a blank:
Private Sub ThisComBox77_BeforeUpdate(Cancel As Integer)
If IsNull(Me!FBTSC.Value) Then
Me![FBTSC.Value] = " "
End If
End Sub
Private Sub ThisComboBox_NotInList(NewData As String, Response As Integer)
If IsNull(Me!FBTSC.Value) Then
Me![FBTSC.Value] = " "
End If
End Sub
***********************
I continue to get tried to error " you tried to assign Null value to a variable that isn't a variant data type."
This data field comes from a linked query/table(AS400/DB2).
How do I handle null condition? (i am very new to MS Acess)