J
JEM
I am trying to update a datetime column in one table to the value in
another table. Both columns are datetime (8) but I keep getting the
error message: Your entry cannot be converted to a valid date time
value. I even tried using the Convert function, but get the same
problem. Any ideas?
Here is my sql without Convert and with:
UPDATE dbo.tblEnrollment
SET Transaction_Date = SELECT dbo.Enroll.TransactionDate FROM
dbo.Enroll WHERE dbo.Enroll.VehicleVIN = dbo.tblEnrollment.
[Vehicle_Vin]
UPDATE dbo.tblEnrollment
SET Transaction_Date = CONVERT(DATETIME, SELECT
dbo.Enroll.TransactionDate FROM dbo.Enroll WHERE dbo.Enroll.VehicleVIN
= dbo.tblEnrollment.[Vehicle_Vin],102)
Thanks,
Jenn
another table. Both columns are datetime (8) but I keep getting the
error message: Your entry cannot be converted to a valid date time
value. I even tried using the Convert function, but get the same
problem. Any ideas?
Here is my sql without Convert and with:
UPDATE dbo.tblEnrollment
SET Transaction_Date = SELECT dbo.Enroll.TransactionDate FROM
dbo.Enroll WHERE dbo.Enroll.VehicleVIN = dbo.tblEnrollment.
[Vehicle_Vin]
UPDATE dbo.tblEnrollment
SET Transaction_Date = CONVERT(DATETIME, SELECT
dbo.Enroll.TransactionDate FROM dbo.Enroll WHERE dbo.Enroll.VehicleVIN
= dbo.tblEnrollment.[Vehicle_Vin],102)
Thanks,
Jenn