R
Rajtomar
I have a DB where user enters CourseName and Then CourseNumber
(Primary key and Unique).. I run a code to check and display a custom
error message if the value in CourseNumber is duplicate.
The CourseName are actually abbreviations like AFF or PSCRB, or MFA
etc...
CourseNumber contains three parts i.e. CourseSerialNumberInCurrentyear
+CourseName+last2digitsofCurrentYrneeds
for example 001AFF09 or 029MFA09 or 010MFA10..
because of different user using the db they enter the same course no.
in different formats like 001AFF09 or 001AFF2009 or 001/AFF/09 or AFF/
001/09 and so many which makes it impossible to check for duplicacy..
I therefore want to force an input mask in CourseNumber Field and need
to know the following...
first three numbers necesaarily to be numbers, last two numbers should
represent year's last two digits, center part can have numbers,
alphabets, symbols and can be of from 02 characters to 10 characters
length.
The input mask for first part and last part is easy, only the center
part is troublesome,. If it is possible something like this
000"/"[CourseName]"/"YY (coursename automaticaly inserts after exit
from Coursename field and is uneditabel, user can only enter 1st and
last parts....
Any help is deeply appreciated.... Icant think of any other place
providing solution form my access problems, this forum has till now
helped me a lot..
Thanks a lot
(Primary key and Unique).. I run a code to check and display a custom
error message if the value in CourseNumber is duplicate.
The CourseName are actually abbreviations like AFF or PSCRB, or MFA
etc...
CourseNumber contains three parts i.e. CourseSerialNumberInCurrentyear
+CourseName+last2digitsofCurrentYrneeds
for example 001AFF09 or 029MFA09 or 010MFA10..
because of different user using the db they enter the same course no.
in different formats like 001AFF09 or 001AFF2009 or 001/AFF/09 or AFF/
001/09 and so many which makes it impossible to check for duplicacy..
I therefore want to force an input mask in CourseNumber Field and need
to know the following...
first three numbers necesaarily to be numbers, last two numbers should
represent year's last two digits, center part can have numbers,
alphabets, symbols and can be of from 02 characters to 10 characters
length.
The input mask for first part and last part is easy, only the center
part is troublesome,. If it is possible something like this
000"/"[CourseName]"/"YY (coursename automaticaly inserts after exit
from Coursename field and is uneditabel, user can only enter 1st and
last parts....
Any help is deeply appreciated.... Icant think of any other place
providing solution form my access problems, this forum has till now
helped me a lot..
Thanks a lot