I'm trying to pass a date to a SQL7 procedure from VB6. The param in the stored procedure is declared as a datetime. When I pass an empty string (i.e. '') to the procedure, SQL7 wants to put in the value of 1/1/1900. I just want a null value if the date is not passed in.
I also tried using the VB vbNullChar value, but that inserts 12/30/1899 (or something like it).
Anyway, if the date is not required, how do I actually get SQL7 to insert NULL rather than a default date?
Thanks,
Kyle
I also tried using the VB vbNullChar value, but that inserts 12/30/1899 (or something like it).
Anyway, if the date is not required, how do I actually get SQL7 to insert NULL rather than a default date?
Thanks,
Kyle