Try the following validation rule
Not Is Null And NOT LIKE "*[!0-9A-Z]*"
For a field in a table, and just in case you'll be updating through for instance ADO, you might want to deal with ADO wildcards too.
Not Is Null And NOT LIKE "%[!0-9A-Z]%" And NOT LIKE "*[!0-9A-Z]*"