D
Dave
The following code produces a "null error" if the SQL
database column is null:
If Not IsDBNull(DsUnit1.Unit(0).TechID) Then
cmbxTechFName.SelectedValue = DsUnit1.Unit
(0).TechID
cmbxTechLName.SelectedValue = DsUnit1.Unit
(0).TechID
End If
The TechID column is defined as a integer and can be
null. The error occurs on the If statement (ie. not the
code following the Then statement). Hope someone can
point me in the right direction!
database column is null:
If Not IsDBNull(DsUnit1.Unit(0).TechID) Then
cmbxTechFName.SelectedValue = DsUnit1.Unit
(0).TechID
cmbxTechLName.SelectedValue = DsUnit1.Unit
(0).TechID
End If
The TechID column is defined as a integer and can be
null. The error occurs on the If statement (ie. not the
code following the Then statement). Hope someone can
point me in the right direction!