Buy Direct M-F 9am - 10:30pm EST 1-866-764-1801

Vist our Online Store
+ Reply to Thread
Results 1 to 4 of 4
  1. #1

    Member Sales Rating: (20)

    Join Date
    Jan 2004
    Location
    7th Circle of Hell - aka DFW
    Posts
    9,544

    Default MS Access question

    I'm pulling a field into a query and need to ignore the first 5 characters of the field. The field may be different lengths, but it's always going to be more than 5 characters and I always need to ignore the first 5.

    Is there a trim function that I can use? I'm familiar with TRIM() but I think that only works for leading spaces or zeroes, not what I need.

    I know we've got some programmers in here, thought I'd see if anyone can help.
    Main HT
    Magnepan 1.6QR fronts, PSB Image B4 surrounds, Pioneer SC-25, Parasound Halo A23, Oppo BDP-83 SE, Airport Express w/ Peachtree DAC, Sony KDL-55HX850, Sony PS3, Apple TV

    Bedroom System
    Polk Blackstone TL3, Polk PSWi225 Wireless Sub, HK 3490 Integrated, Oppo BDP-83, Sharp Aquos 32" TV, Apple TV

    Office Rig
    27" iMac w/Amarra, Peachtree DAC-IT, Focal XS Book, Schiit Valhalla > Sennheiser HD600, Schiit Lyr > HiFiMan HE0500, LG 47LM7600, Sony PS3, XBOX 360, Apple TV

  2. #2

    Member Sales Rating: (0)

    Join Date
    Mar 2005
    Posts
    236

    Default

    Try:

    Like "*querytext"

    where querytext is whatever your actually searching for
    No earth robot is going to tell ME which button to press!!

    --Stuff--
    Front: Polk Audio RTi12
    Center: Polk Audio CSi5
    Surrounds: Polk Audio RTi8 (x4)
    Sub: SVS PB10-ISD (Dual)
    AVR: Denon AVR-3805
    DVD: Denon DVD-2910
    Display: Sony KDL-52XBR4
    STB: Motorola 6412 Dual Tuner DVR

    Bedroom system:
    Sherwood Stereo Receiver (RX-4105)
    Polk Audio RTi6 (x4)

  3. #3

    Member Sales Rating: (0)

    Join Date
    Jan 2007
    Posts
    39

    Default

    Try this....

    SELECT MID(my_column, 6)
    FROM my_table

    or if you want the spaces gone too...

    SELECT MID(TRIM(my_column), 6)
    FROM my_table



    Brad

  4. #4

    Member Sales Rating: (20)

    Join Date
    Jan 2004
    Location
    7th Circle of Hell - aka DFW
    Posts
    9,544

    Default

    Thanks Brad, exactly what I was looking for...I knew there had to be some syntax for it...
    Main HT
    Magnepan 1.6QR fronts, PSB Image B4 surrounds, Pioneer SC-25, Parasound Halo A23, Oppo BDP-83 SE, Airport Express w/ Peachtree DAC, Sony KDL-55HX850, Sony PS3, Apple TV

    Bedroom System
    Polk Blackstone TL3, Polk PSWi225 Wireless Sub, HK 3490 Integrated, Oppo BDP-83, Sharp Aquos 32" TV, Apple TV

    Office Rig
    27" iMac w/Amarra, Peachtree DAC-IT, Focal XS Book, Schiit Valhalla > Sennheiser HD600, Schiit Lyr > HiFiMan HE0500, LG 47LM7600, Sony PS3, XBOX 360, Apple TV

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Internet problem, can't access certain websites..
    By Face in forum The Clubhouse
    Replies: 11
    Last Post: 08-14-2007, 01:05 PM
  2. TF: Access to Sector Seven password
    By PolkThug in forum Music & Movies
    Replies: 1
    Last Post: 06-22-2007, 03:48 PM
  3. Why can't I access craigslist?
    By Early B. in forum The Clubhouse
    Replies: 7
    Last Post: 05-05-2006, 07:42 AM
  4. Any MS Access gurus in here - please help
    By AsSiMiLaTeD in forum The Clubhouse
    Replies: 4
    Last Post: 04-26-2005, 09:13 PM
  5. Replies: 8
    Last Post: 03-28-2005, 01:42 PM

Posting Permissions

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