simoncpage Posted July 5, 2004 Posted July 5, 2004 Is it possible to have a field which only takes number but allows spaces?
Robert Kidd Posted July 5, 2004 Posted July 5, 2004 Set your text field as validate by calculation= Substitute ( FieldA; " "; "") = GetAsNumber(Substitute ( FieldA; " "; "")) Use TextToNum for pre V7 in lieu of GetAsNumber
simoncpage Posted July 5, 2004 Author Posted July 5, 2004 hmm seems to be a problem is the number in the cell begins with a 0 "012" is picked up as invalid
simoncpage Posted July 5, 2004 Author Posted July 5, 2004 Have used: If(Left(FieldA, 1) <> 0, Substitute( FieldA, " ", "") = TextToNum(Substitute( FieldA, " ", "")), Substitute( Right(FieldA, Length(FieldA)-1), " ", "") = TextToNum(Substitute( Right(FieldA, Length(FieldA)-1), " ", ""))) ?
Robert Kidd Posted July 5, 2004 Posted July 5, 2004 Or: Substitute(Substitute(test;0;"");" ";"") = GetAsNumber(Substitute(Substitute(test;0;"");" ";"") )
Recommended Posts
This topic is 7515 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now