Forum Moderators: open
For instance if there was a passed value from a text field called 'Name', I need to be able to select the first 3 characters of this.
TIA
Consider using a composite key on the database table to avoid collisions that can potentially occur when building an order number using this method.
An int identity row with auto-increment coupled with your order number would create a unique composite key that would not have collission issues.