Thanks. I figured out how to do that. But here is another problem. I read in a date/time that looks something like 01/23/2003 19:23:02 as a string from a flat file. When I CDate(sDate) where sDate is 01/23/2003 19:23:02 , I get a conversion error. If I separate the date from the time and do CDate to each individually, it works. Also if I do
sDate = "01/23/2003 19:23:02"
debug.print CDate(sDate)
I get no error. What is up with reading the date/time from an ascii file and then using CDate?