Results 1 to 3 of 3
  1. #1
    jscriptor09 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    60

    Run-Time error '3709'

    Hi folks

    I am using access 2010 and running into this error

    Run-Time error '3709';


    The search key was not found in any record

    when applying a Filter which exceute this statement
    Me.Filter = "[LOB_Region] = 'NORTH AMERICA' AND [YR_FW] = 2009.38 AND [LOB_Entity] = 'Engineering' AND [LOB_ActivityStatus] = 'Complete'"

    it seems like whenever there is a space like here 'NORTH AMERICA' the error pops up. If I use something like 'Europe' I don't see it.

    I did a lot of web searches and tried all the tricks ... restart DB, make sure fields name don't have spaces, table is not too large and so forth. Nothing works except not haveing a space in the record search string.

    Does anyone see a proble with the wary this query is structured?

    Many thanks for your help
    Mike
    Last edited by jscriptor09; 07-03-2011 at 08:03 AM. Reason: clarify

  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,622
    Run Compact & Repair. If this a split db, run the C&R on the backend.

    I just tested a query with criteria having multiple words and not an issue. However, I have not tested the Filter property in 2010. If the C&R doesn't fix maybe there is a bug in 2010 you will have to deal with. Either remove spaces from the actual data so NORTH AMERICA becomes NorthAmerica or format the search string to disregard spaces. Try:
    Replace([LOB_Region]," ", "") = 'NORTHAMERICA'

    If the value NORTH AMERICA is from a form control, then apply the Replace function on that input as well.
    Last edited by June7; 07-03-2011 at 02:12 PM.
    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
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    It can also be a sign of data corruption.

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

Similar Threads

  1. Replies: 2
    Last Post: 12-23-2010, 09:11 AM
  2. Replies: 2
    Last Post: 12-02-2010, 02:35 AM
  3. Run time error
    By vaikz in forum Import/Export Data
    Replies: 1
    Last Post: 02-18-2010, 11:37 PM
  4. Run Time Error 3078
    By jimjaix in forum Access
    Replies: 2
    Last Post: 02-02-2010, 12:17 PM
  5. Run Time Error 424
    By ddog171 in forum Programming
    Replies: 3
    Last Post: 02-04-2006, 07:13 AM

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