How I do I send an actual null value to an SQL database? Right now I am sending a empty string but I have to change that to a null. I thought something like this would work but I must be missing something.
VB Code:
  1. Dim strCityTax As String
  2.  
  3.         If txtCityTax.Text = "" Then
  4.             strCityTax = DBNull
  5.         Else
  6.             strCityTax = txtCityTax.Text
  7.         End If
That puts a squiggly line under the DBNull with this warning: 'DBNull' is a type and cannot be used as an expression.