I'm trying to validate a UK post code field in MS Access using the LIKE
function and I need to be able to allow the possibility that a character be A-Z
, 0-9
, or simply not be present.
Some postcodes have 1 digit for the first section, others have 2.
So far I have the following:
Like "[A-Z][A-Z,0-9][A-Z,0-9][A-Z,0-9,][ ][0-9][A-Z,0-9][A-Z,0-9]"
However, the third and fourth characters may not even exist in a given post code, how can I handle this?