Hi,
My colleague has a large Excel file in which several columns contain dates. She updates this constantly, but now I need to take a weekly 'snapshot' of it to do further work in Access. So I'm using a make-table query.
But for some records, she enters "N/A" or even "Ignore this one" (I know!
) in certain columns. I've told her this is bad practice from a data viewpoint but she's had the spreadsheet a long time and doesn't wan't to change it. Her system works for her! When I open the spreadsheet via Access, these values show up as #Num!
The problem is that when I try to add those fields to the make-table query, I get a "Numeric field overflow" error message. So what I would like to do is simply convert these errors to NULL. But I can't make it work. I was hoping IIF(IsDate([MyDate]),NULL,[MyDate]) would work, but it doesn't. To try to work out why, I simplified it to IsDate([MyDate]) to see whether I got ones or zeroes, but if there was #Num! in MyDate, then I also got #Num! from the IsDate function.
Suggestions please! I think I've run up against a brick wall, but as usual there's probably something I'm missing.
Thanks,
My colleague has a large Excel file in which several columns contain dates. She updates this constantly, but now I need to take a weekly 'snapshot' of it to do further work in Access. So I'm using a make-table query.
But for some records, she enters "N/A" or even "Ignore this one" (I know!
The problem is that when I try to add those fields to the make-table query, I get a "Numeric field overflow" error message. So what I would like to do is simply convert these errors to NULL. But I can't make it work. I was hoping IIF(IsDate([MyDate]),NULL,[MyDate]) would work, but it doesn't. To try to work out why, I simplified it to IsDate([MyDate]) to see whether I got ones or zeroes, but if there was #Num! in MyDate, then I also got #Num! from the IsDate function.
Suggestions please! I think I've run up against a brick wall, but as usual there's probably something I'm missing.
Thanks,