Microsoft, Access, 2007, 64-bit machine error - can't save output data to the file

Posted on 2008-11-03
Last Modified: 2013-11-28
My Access 2007 database works fine for all users I've tested except for 2 who both have 64-bit machines.  The error message is "can't save the output data to the file you've selected".  The debugger stops at the follwing command.

DoCmd.OutputTo acOutputReport, "ToolingReport", acFormatRTF, strFileName, False

Here's the entire procedure where the debugger stops

Private Sub SendEMail_Click()

  Dim mailapp As Outlook.Application
  Dim mailitem As Outlook.mailitem
  Dim addressList, requestorAddress As String
  Dim subjectStr, strWhere As String
  Dim strFileName, strDocName As String
  Dim tempNo As Integer
    Set mailapp = New Outlook.Application
    Set mailitem = mailapp.CreateItem(0)
    subjectStr = "NEW - Tooling Request #" & Nz(Me!ToolingNum) & " has been opened."
    strFileName = "c:\temp\test.rtf"
    requestorAddress = Nz(Me!Requestor.Column(1))
    addressList = Me!ProgramMgr
    tempNo = 1000 + DCount("RecordNum", "ToolingTable", "Revision=1")
    strDocName = "ToolingReport"
    strWhere = "RecordNum = " & tempNo
    DoCmd.OpenReport strDocName, acViewPreview, "", strWhere, , "entry"
    DoCmd.OutputTo acOutputReport, "ToolingReport", acFormatRTF, strFileName, False
    With mailitem
        .To = addressList
        .CC = requestorAddress
        .Subject = subjectStr
        .Body = "Please review the attached new Tooling Request and reply with your approval " _
          & "or update the Program Manager Approval field in the Request Database."
        .Attachments.Add strFileName
    End With

    Set mailitem = Nothing
    Set mailapp = Nothing

End Sub
Question by:greenprg
    LVL 74

    Accepted Solution


    1. Make *sure* that a "temp" Folder/Directory actually exists on these machines, and that the users have permissions to Create records on it.
    (Check the spelling as well)

    2. Does it work with another format? (AcFormatSNP, AcFormatHTML, AcFormatPDF)

    3. Is this a databse that was converted from 2003 or eariler?


    Author Comment

    Thanks, Jeff!

    #1 was exactly correct.  It had nothing to do with the 64-bit machine.  For some reason he does not have a temp folder.

    LVL 74

    Expert Comment

    by:Jeffrey Coachman

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
    I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
    In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now