Results 1 to 3 of 3
  1. #1
    murphy is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    1

    Try to remove everything to the right of SF

    I have a query where I want to remove everything to the right of SF in a column. I am using access 2007



    SELECT Left(STORE_SIZE,InStr(1,STORE_SIZE,"SF") +1) AS R_STORE_SIZE
    FROM TENANT_TBL
    WHERE DISPLAY = 1

    The error that is returned to me is
    [Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,621
    I just tested Left("abSFcde",Instr("abSFcde","SF")+1) and it works. No idea what could cause that error.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    pdebaets is offline Competent Performer
    Windows Vista Access 2010 (version 14.0)
    Join Date
    Jul 2010
    Location
    Los Angeles
    Posts
    235
    Check the spelling of your field names. Also, Access has a number of reserved words. "Display" MAY be one of them. To tell Access that this is a field name instead of a reserved word, enclose it in brackets like so

    [Display]

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Remove Duplicate
    By rgparpaccessforums in forum Access
    Replies: 3
    Last Post: 04-24-2011, 07:24 PM
  2. Anyone help me Remove password
    By nht2007 in forum Security
    Replies: 2
    Last Post: 11-02-2010, 09:20 PM
  3. How do I remove a filter
    By cowboy in forum Forms
    Replies: 7
    Last Post: 04-21-2010, 10:13 AM
  4. remove a password
    By ngeng4 in forum Security
    Replies: 1
    Last Post: 03-30-2010, 05:52 AM
  5. How to remove duplicates
    By TonyBender in forum Access
    Replies: 0
    Last Post: 10-21-2009, 10:27 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
  •  
Other Forums: Microsoft Office Forums