I want to take two integer fields (month and year) in a table and make them into a date field int the table. If I can use SQL that would be great, my problem is that I can't assign NULL values to a field
UPDATE tblAll SET tblAll.dob = IIf(IsNull([mm]),"",CDate([mm] & "/1/" & [yy]));
My problem is the Isnull(mm) statement gives me an invalid data type error. How do I output an empty date? iif(isnull(mm),null, ... doesn'e work either.
UPDATE tblAll SET tblAll.dob = IIf(IsNull([mm]),"",CDate([mm] & "/1/" & [yy]));
My problem is the Isnull(mm) statement gives me an invalid data type error. How do I output an empty date? iif(isnull(mm),null, ... doesn'e work either.