I am trying to find a way to check all values entered into a specific column to ensure that all values are a valid mmddyy date.
The column will be of text type, so there is the potential for this column to contain any values. I am not sure if there is a more elegant solution but out of the gate in its most raw form I was thinking I could make sure that:
The length of the value is 6
The value of the 2 left most characters is between 01 and 12
the value of the two center characters {left((right(column,4),2) in sql terms} is between 01 and 31
The right two characters are between say 10 and 30.
Also, on a similar note I'd also like to validate another column to make sure that it contains only values, not formulas.
Any advice?
Thanks in advance.
The column will be of text type, so there is the potential for this column to contain any values. I am not sure if there is a more elegant solution but out of the gate in its most raw form I was thinking I could make sure that:
The length of the value is 6
The value of the 2 left most characters is between 01 and 12
the value of the two center characters {left((right(column,4),2) in sql terms} is between 01 and 31
The right two characters are between say 10 and 30.
Also, on a similar note I'd also like to validate another column to make sure that it contains only values, not formulas.
Any advice?
Thanks in advance.