Mr_Adams
Active Member
- Joined
- Oct 7, 2002
- Messages
- 475
I use the formula below to validate entries in excel to look like
#####.#####
or
#####.#####.##
Can someone help me with a validation rule for access that will do the same thing
Thank You
#####.#####
or
#####.#####.##
Code:
=OR(AND(MID(O6,6,1)=".",NOT(ISERR(VALUE(SUBSTITUTE(O6,".","")))),LEN(O6)=11),AND(AND(MID(O6,6,1)=".",MID(O6,12,1)="."),NOT(ISERR(VALUE(SUBSTITUTE(O6,".","")))),LEN(O6)=14))
Thank You