Dugantrain
I Love Pants
- Local time
- Today, 09:26
- Joined
- Mar 28, 2002
- Messages
- 221
Hi, all, just another day in Excel Hell. What I have is an Excel Spreadsheet which has a myriad of different data types in its numerical and date fields. The procedure that I came up with which works (to this point, anyway) is to write automated queries which, when this data is imported, looks at the numerical/date fields, lumps the bad data into another "Import_Comments" field, and then deletes the bad data out of the original fields. The validation I used is:
However, some times a field can pass this validation and still not import. For example, a date field's data may be something weird like:
So, I need a smarter validation, something like:
for the date fields. But the query doesn't seem to care much for that syntax. I also need the numerical fields to ensure that ONLY numbers are contained within their fields with no text.
Code:
Not between "0*" and "9*"
Code:
6/3/200+J803
Code:
Not like ##/##/####