testing for numeric or alpha


Michelle W.

How do I test a text field for numeric data? How do I test a text field for
alpha data?


? IsNumeric("33.6"), IsNumeric("44A"), val("44a")
True False 44

So, IsNumeric can do, if the whole field has to be numerical, else, val( )
can extract the first number seen.

Not IsNumeric is an "alpha" field, or you mean "alpha' is only a text that
will NOT contain any digit? if so, the NOT LIKE "*[0-9]*" could do.

Vanderghast, Access MVP

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question