Results 1 to 3 of 3
  1. #1
    fryeste is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2019
    Posts
    4

    Database backup & crash

    This is an expansion to a previous thread titled "Unwanted prompt to backup database".

    To summarize that thread, a multi-user application throws up a dialog to back up the database at a certain point, after which Access closes the application and itself. And before you suggest this, it was built and is used as a split application with the front-end installed locally on each workstation.

    Further troubleshooting of this issue has revealed the following:
    - the issue only occurs on one machine: other users on other machines do not experience this problem.
    - it's machine-related, not user-related, as the normal user of the machine that crashes can log in to a different machine and run the application without error.
    - the error occurs at the third line of this code snippet:


    DoCmd.OpenReport "Data File Statistics", acViewNormal
    DoCmd.OutputTo acOutputReport, "Data File Statistics", acFormatRTF, ReportStr
    DoCmd.SendObject acSendReport, "Data File Statistics", acFormatRTF, EmailTo, EmailCC, , SubjectStr, "See Attached for Details"

    Which prints the report named "Data File Statistics", saves a copy of the report in RTF format to a specific location, and then emails that RTF report as an attachment to the specified recipients.


    It appears the error occurs when opening the email window so the user can send off the message. Any ideas about what to look at for the cause of this problem? Our IT Vendor is at a loss as well...

    Thanks, Steve

  2. #2
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,250
    Hi Steve,

    What is the email client? Is it set as default (in default apps)? Access needs a MAPI compliant client to be set as default for the SendObject to work. If you open the same report in PrintPreview is the Email button enabled?

    Cheers,
    Vlad

  3. #3
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    Also check there are no missing references in the VBE.
    Is the affected PC using the same Windows and Access versions and bitnesses as those that work OK?
    Try decompiling then recompile and compact OR copy a fresh FE to that PC
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

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

Similar Threads

  1. Replies: 3
    Last Post: 05-25-2018, 09:28 PM
  2. Backup Database
    By DPS in forum Access
    Replies: 5
    Last Post: 10-30-2015, 08:20 AM
  3. Backup database
    By mathhero in forum Access
    Replies: 2
    Last Post: 10-30-2015, 04:49 AM
  4. Button to backup database ???
    By TenOc in forum Programming
    Replies: 2
    Last Post: 02-15-2015, 08:33 PM
  5. Database backup automation
    By aat in forum Access
    Replies: 2
    Last Post: 09-17-2010, 07:24 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