R
R Bolling
Hi -- I have an append query where I am appending to a SQL Server
table. One of the fields is WantedByDate, and periodically it is left
blank. Whenever I attempt an append, I get the error: "You tried to
assign the null value to a variable that is not a variant data type."
Initially, I set the field so that it would accept nulls -- that
didn't work.
So I tried creating the calculated field:
IIF(isnull[WantedByDate],date(),[WantedByDate]) which works great --
but the date() stamp is incorrect. I tried using nz([WantedByDate])
and that gives me a type mismatch. I can't change the data type on
SQL Server because it's a production table.
If the [WantedByDate] is null, it needs to be null in the SQL table.
Does anyone have any suggestions.
Thanks,
RBollinger
table. One of the fields is WantedByDate, and periodically it is left
blank. Whenever I attempt an append, I get the error: "You tried to
assign the null value to a variable that is not a variant data type."
Initially, I set the field so that it would accept nulls -- that
didn't work.
So I tried creating the calculated field:
IIF(isnull[WantedByDate],date(),[WantedByDate]) which works great --
but the date() stamp is incorrect. I tried using nz([WantedByDate])
and that gives me a type mismatch. I can't change the data type on
SQL Server because it's a production table.
If the [WantedByDate] is null, it needs to be null in the SQL table.
Does anyone have any suggestions.
Thanks,
RBollinger