This information was provided by Claris Corporation on 16 March 1998, and incorporated into Apple Computer's Tech Info Library.
Then, putting both of these together inside a nested If statement would look like this:
NumberOnlyTest (Calculation, Text Result)
= IF(ISERROR(ISNUMBER(TEXTTONUM('TestField'))),"Value contains a non-numeric character", IF(TEXTTONUM(NUMTOTEXT('TestField'))<>'TestField',"Value contains a non-numeric character",""))
When the TEXTTONUM function does not produce a number then the ISNUMBER function produces an error, which flags the value as not being a number. If there is both number and non-number data in the field, the comparison test flags the field as having a non-number character in it.
NOTE: The two tests must be done sequentially (i.e., in a nested fashion) as the ISERROR function will not work with an OR conjunction when used inside an IF test.