J
Jackson via AccessMonster.com
Hi,
I've got a table that uses an autonumber and a type field as the primary key.
On a certain form, these are joined so that I get IDs like 1023N or 1043R. It
will always be an N or R following the numbers but also could have 1023NA or
several 'A's added but that doesn't really matter. What I want to do is be
able to split this back out into a number and Type, ie N or NA etc.
Is there a way I can find where in a string the first alphabetic character
appears, or at least where the first N or R appears?
I have a module which can find where the first number occurs (the position)
by searching for Like "#" but I can't think how to do this for letters.
Any help would be appreciated!
Regards,
Jack.
I've got a table that uses an autonumber and a type field as the primary key.
On a certain form, these are joined so that I get IDs like 1023N or 1043R. It
will always be an N or R following the numbers but also could have 1023NA or
several 'A's added but that doesn't really matter. What I want to do is be
able to split this back out into a number and Type, ie N or NA etc.
Is there a way I can find where in a string the first alphabetic character
appears, or at least where the first N or R appears?
I have a module which can find where the first number occurs (the position)
by searching for Like "#" but I can't think how to do this for letters.
Any help would be appreciated!
Regards,
Jack.