My app is erroring out on the code below...
Me.TableAdapter.Fill(Me.Da
taSet.Tabl
e, variable)
Dim row As DataSet.TableRow
row = DataSet.Table.Rows.Item(0)
If row.DateTimeField is DBNull.Value Then
Else
Me.DateTimePicker.value = row.DateTimeField
End If
It won't accept the "If row.DateTimeField is DBNull.Value Then" line. How can I check if the field is null?
Start Free Trial