I'm attempting to update (populate) a null date/time field with random dates using:
...called from this Update Query:
Problem being: It works as advertised in A97, but not in A2003 (processes just fine, but doesn't populate the field).
I'm clueless. Any thoughts?
Thanks,
Bob
Code:
Public Function GenRndDate(ByVal Upper As Date, ByVal Lower As Date) As Date
Randomize
GenRndDate = Int((Upper - Lower + 1) * Rnd + Lower)
End Function
...called from this Update Query:
Code:
UPDATE tblDateTest4 SET tblDateTest4.MyDate = GenRndDate(#1/1/2007#,#1/1/2009#)
WHERE
(((tblDateTest4.MyDate) Is Null));
Problem being: It works as advertised in A97, but not in A2003 (processes just fine, but doesn't populate the field).
I'm clueless. Any thoughts?
Thanks,
Bob