Eljefegeneo
Still trying to learn
- Local time
- Today, 14:44
- Joined
- Jan 10, 2011
- Messages
- 902
Format
I am importing a field from and old DOS based data base where dates and text are mixed in the same field. The field can have either one of more dates or text. That is the possible entries in the field are:
(1) 12/12/2013
(2) 12/12/2013, 12/1/2013 or some other delimiter other than a comma
(3) 6 CD’s
When I tried to import the field, I am finding that (1) results in a string of numbers which represents the date. The others are, of course, OK.
What I am trying to figure out is if the first type occurs and I have 41640 it will appear as 01/01/2014. So, can you have mixed field types in the same field by using some custom formatting with an if (of Iif) statement and what would that be?
Something like IIF(IsDate([FieldA], format([FieldA], “short date”), “@”)
I just can’t seem to get the right nomenclature or number of correct arguments.
And yes, I know I could split it into two types of fields, but I don’t think this is possible.
I am importing a field from and old DOS based data base where dates and text are mixed in the same field. The field can have either one of more dates or text. That is the possible entries in the field are:
(1) 12/12/2013
(2) 12/12/2013, 12/1/2013 or some other delimiter other than a comma
(3) 6 CD’s
When I tried to import the field, I am finding that (1) results in a string of numbers which represents the date. The others are, of course, OK.
What I am trying to figure out is if the first type occurs and I have 41640 it will appear as 01/01/2014. So, can you have mixed field types in the same field by using some custom formatting with an if (of Iif) statement and what would that be?
Something like IIF(IsDate([FieldA], format([FieldA], “short date”), “@”)
I just can’t seem to get the right nomenclature or number of correct arguments.
And yes, I know I could split it into two types of fields, but I don’t think this is possible.