Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2002
    Location
    Houston, TX
    Posts
    34

    Unanswered: Easy TRIM question

    I have an 11 digit code called photo_code. 10401610016

    I want to split it up into two variables called code1 and code2

    code1 should be the first 6 digits of photo_code
    code2 should be the last 5 digits of photo_code

    I know that this can be done with a couple of simple TRIM statements but I cannot seem to figure out how to make this work with variables.

    Thanks.

  2. #2
    Join Date
    Jul 2003
    Location
    SoCal
    Posts
    721
    code1 = Left(photo_code, 6)
    code2 = Right(photo_code, 5)
    That which does not kill me postpones the inevitable.

  3. #3
    Join Date
    Oct 2002
    Location
    Houston, TX
    Posts
    34
    Thanks! I had the order wrong!

Posting Permissions

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