Results 1 to 3 of 3
  1. #1
    Silver Lounger
    Join Date
    Jun 2002
    Location
    Cheadle, Staffordshire
    Posts
    2,177
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Len Function (AXP)

    I know its possible but not sure how to implement.

    If I have a clients name ie: WILLETT and a clients vehicle registration ie: R962RUX.
    How do I concatenate the two to create a (hopefully) unique code.

    I would like to use the first three & last three letters to create the code, ie:

    WILRUX

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Len Function (AXP)

    In a query, create a calculated column:

    MyCode:Left([ClientName],3)&Right([VehicleRegistration],3)

    Replace ClientName and VehicleRegistration by the field names in your database., and MyCode by the name you want the code to have.

  3. #3
    Silver Lounger
    Join Date
    Jun 2002
    Location
    Cheadle, Staffordshire
    Posts
    2,177
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Len Function (AXP)

    Thanks for that Hans.

    I'll give it a whirl and hope to automate it on a front end form.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •