Results 1 to 9 of 9
  1. #1
    AAAndy is offline Advanced Beginner
    Windows 7 64bit Access 2013 32bit
    Join Date
    Aug 2016
    Posts
    68

    Question Getting error Run-time error '3709' on one computer but not the other

    Getting error on one computer but not the other


    MS Access file is on a server so both computer access the same files from the server.

    Debug statement highlights this code: DoCmd.TransferDatabase ........................

    Below is the full error. Does anyone know the fix?

    Run-time error '3709':
    The search key was not found in any record.


    Click image for larger version. 

Name:	run time error 3709.jpg 
Views:	20 
Size:	26.2 KB 
ID:	26890
    Last edited by AAAndy; 12-31-2016 at 12:52 PM.

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Just curious, but can you show that a record with the search key does exist?
    Have you used google/bing to research error 3709?

    Such a message is really an information item.

    Similar, I'm searching for "ABCD", and that string doesn't exist; so an info message - search key not found in any record.

    What exactly was the search key?
    What exactly is the code requesting the search?

  3. #3
    AAAndy is offline Advanced Beginner
    Windows 7 64bit Access 2013 32bit
    Join Date
    Aug 2016
    Posts
    68
    Quote Originally Posted by orange View Post
    Just curious, but can you show that a record with the search key does exist?
    Have you used google/bing to research error 3709?

    Such a message is really an information item.

    Similar, I'm searching for "ABCD", and that string doesn't exist; so an info message - search key not found in any record.

    What exactly was the search key?
    What exactly is the code requesting the search?

    It searches for the same record each time.
    I spent several hours searching on google.

    I think that it might be a setting in access or the computer since it works on one but not the other.

  4. #4
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2007
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    Could we see the rest of the line Andy?


    Sent from my iPhone using Tapatalk

  5. #5
    AAAndy is offline Advanced Beginner
    Windows 7 64bit Access 2013 32bit
    Join Date
    Aug 2016
    Posts
    68
    I currently don't have access to the other computer. Will need to wait till Tuesday.
    It is the same code / same file because it is on the server. Both computers access the server to run the file.
    Last edited by AAAndy; 12-31-2016 at 12:53 PM.

  6. #6
    Micron is offline Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    As long as they are both trying to work with the same Access database and both are using the same Excel file, I'm going to guess one of them does not have the location of either the db or Excel file set as a trusted location.
    If it happened on both (or if the workbook files are not the same) I'd say one of the workbooks has a space in front of one of the column headers. Probably not real noticeable in Excel, but Access will choke on it with this error number as the result.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  7. #7
    AAAndy is offline Advanced Beginner
    Windows 7 64bit Access 2013 32bit
    Join Date
    Aug 2016
    Posts
    68
    Quote Originally Posted by Micron View Post
    As long as they are both trying to work with the same Access database and both are using the same Excel file, I'm going to guess one of them does not have the location of either the db or Excel file set as a trusted location.
    If it happened on both (or if the workbook files are not the same) I'd say one of the workbooks has a space in front of one of the column headers. Probably not real noticeable in Excel, but Access will choke on it with this error number as the result.



    I made sure that the directory is trusted but same issue. All workbook files are also on the same server.

    Below is the code that generates the error

    DoCmd.TransferDatabase acExport, "Microsoft Access", Me!txtDirectory & Me!txtFileName, acTable, strQueryName, "MonthEnd", False

  8. #8
    Micron is offline Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    Posting the code is good but the actual values would help. Post the debug.print results from the immediate window and use code tags for code. This site inserts a space after 50 contiguous characters, which can imply problems with spaces where none exist.

  9. #9
    AAAndy is offline Advanced Beginner
    Windows 7 64bit Access 2013 32bit
    Join Date
    Aug 2016
    Posts
    68
    Quote Originally Posted by Micron View Post
    Posting the code is good but the actual values would help. Post the debug.print results from the immediate window and use code tags for code. This site inserts a space after 50 contiguous characters, which can imply problems with spaces where none exist.


    Itsdfkj
    asdfklj skdlfj

    It is fixed now. I needed to setup an ODBC SQL Server connection.

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

Similar Threads

  1. Replies: 3
    Last Post: 02-10-2022, 07:10 PM
  2. Why error code 3709 on RunSavedImportExport?
    By accessmatt in forum Macros
    Replies: 1
    Last Post: 12-24-2014, 12:04 AM
  3. Replies: 8
    Last Post: 04-03-2012, 12:00 PM
  4. 3709 Error -- HELP!!
    By EHittner in forum Access
    Replies: 3
    Last Post: 11-28-2011, 09:17 AM
  5. Run-Time error '3709'
    By jscriptor09 in forum Access
    Replies: 2
    Last Post: 07-03-2011, 12:29 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