Hi all,
Just curious if there is a function that can predict and filter out or ignore anything that is a nondate.
I'm downloading mainframe dates and within a text field A: MMDDYY I'm using the parsing command to give the format MM/DD/YYYY in field b:
The command for field b: CDate(Left(Trim([table A]![Field A]),2) & "/" & Mid([table A]![Field A],4,2) & "/" & Right([table A]![Field A],2))
Problem is when I try to sort and their is anything that is trash or not really a date like "91/12/00" And "91/22/00" or blank I get the Data type mismatch error. I've been doing a work around by having a field off to the right that has <>"91/12/00" and <> "91/22/00" and <>"".
The main problem is that it is hard to anticipate what non-date record is coming down the shute.
Just curious if there is a function that can predict and filter out or ignore anything that is a nondate.
I'm downloading mainframe dates and within a text field A: MMDDYY I'm using the parsing command to give the format MM/DD/YYYY in field b:
The command for field b: CDate(Left(Trim([table A]![Field A]),2) & "/" & Mid([table A]![Field A],4,2) & "/" & Right([table A]![Field A],2))
Problem is when I try to sort and their is anything that is trash or not really a date like "91/12/00" And "91/22/00" or blank I get the Data type mismatch error. I've been doing a work around by having a field off to the right that has <>"91/12/00" and <> "91/22/00" and <>"".
The main problem is that it is hard to anticipate what non-date record is coming down the shute.