johnisotank
Technical User
Hi all,
solution to this little problem just seems to be out of my reach..
Some of our customers need to have
a) specific length order numbers or
b) order numbers starting with certain characters or
c) need a combination of both
I would like a field in our customers table which contains this information and I was thinking of this (if anyone knows a better method pls advise)
if the order number needed to be 5 chars long then the field would contain (5).
If it needed to start with ABC then it would contain [ABC] if it needed both then it would contain (5)[ABC]
This seems logical to me but I now need the code to be able to search the order number typed in and compare it to the customer string.
If the user provided the order number 'AB12' what code would I need to check that string against the OrderNumber validation and tell the user he has failed to enter both correct no. of chars and wrong starting chars?
cheers for any help
John
solution to this little problem just seems to be out of my reach..
Some of our customers need to have
a) specific length order numbers or
b) order numbers starting with certain characters or
c) need a combination of both
I would like a field in our customers table which contains this information and I was thinking of this (if anyone knows a better method pls advise)
if the order number needed to be 5 chars long then the field would contain (5).
If it needed to start with ABC then it would contain [ABC] if it needed both then it would contain (5)[ABC]
This seems logical to me but I now need the code to be able to search the order number typed in and compare it to the customer string.
If the user provided the order number 'AB12' what code would I need to check that string against the OrderNumber validation and tell the user he has failed to enter both correct no. of chars and wrong starting chars?
cheers for any help
John