Results 1 to 5 of 5
  1. #1
    chief68 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jan 2018
    Posts
    3

    Unhappy Access 2010 - transferspreadsheet generates (sometimes) error 3027

    Hello

    I prepared an access tool and i distributed to the users
    In this tool there is a table and I export it in an external excel file with this command

    Code:
    DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel12, "Export", app




    Now, this is a normal command, no objects involved, strange libraries or other
    Well, on my PC it works, on the PC of several users it works, on the PC of someone it DOESN'T work and gives this message

    Run time error 3027:
    Cannot update. Database or object is read-only

    This error has no sense for that command

    I made a check on one of this PC
    No MISSING libraries in the references

    There is just a little difference because I use libraries 14.0, while in the PC where the error occurs there are 16.0 but i don't think this is the real problem

    Any idea?
    Thanks in advance

    A

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    is it possible you do not have rights to that folder you are sending it to?
    and if the user has the file open, it will error then too.

  3. #3
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    In the past, I had problems with transferspreadsheet also. Then I found this site: https://ss64.com/access/acspreadsheettype.html

    Notice that "acSpreadsheetTypeExcel12" is for Access 2007 and
    "acSpreadsheetTypeExcel12xml" is for Access 2010 (and probably later versions)

  4. #4
    chief68 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jan 2018
    Posts
    3
    Quote Originally Posted by ranman256 View Post
    is it possible you do not have rights to that folder you are sending it to?
    and if the user has the file open, it will error then too.
    Hi ranman, thanks for your answer

    It's one of the attempts i did
    The user has "full control" on the destination folder

    A

  5. #5
    chief68 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jan 2018
    Posts
    3
    Quote Originally Posted by ssanfu View Post
    In the past, I had problems with transferspreadsheet also. Then I found this site: https://ss64.com/access/acspreadsheettype.html

    Notice that "acSpreadsheetTypeExcel12" is for Access 2007 and
    "acSpreadsheetTypeExcel12xml" is for Access 2010 (and probably later versions)
    Thanks ssanfu for your answer

    I will try, but in any case, this just set the format of the destination excel file and i don't think that only a particolar file format has the chance to be saved
    And why only on particular PC?

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

Similar Threads

  1. error 3027 on backend file
    By vicsaccess in forum Access
    Replies: 3
    Last Post: 06-09-2016, 11:13 AM
  2. Replies: 20
    Last Post: 04-11-2014, 07:07 AM
  3. Error 3027 when importing text file
    By tym in forum Access
    Replies: 4
    Last Post: 12-12-2011, 12:53 PM
  4. Runtime Error 3027
    By jsbotts in forum Queries
    Replies: 4
    Last Post: 08-27-2011, 06:42 PM
  5. Runtime Error '3027': Database or object is read only
    By 4x4Masters in forum Programming
    Replies: 4
    Last Post: 06-08-2010, 08:02 PM

Tags for this Thread

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