Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21
  1. #16
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,803
    No I did NOT turn off ScreenUpdateing and I did NOT
    No need to shout at anyone for asking a simple question in an attempt to help you. Good luck with it.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  2. #17
    ssanfu is offline Master of Nothing
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    @JimReid

    In Post #2, Welshgasman requested you post all of your code for this issue. I echo that but also request you post your dB, so I/we don't have to try create a dB that would probably be different than your dB.

    Back in my A2000 days, I had the same problem. I would export a report into Excel, then used automation to edit the worksheet, add formulas and format cells.
    Excel would always be left running in the background. After modifying my code based on the code by Ken Snell, I finally got Excel to quit.
    The code is still working (Excel shuts down) in A2010 and A365 ().


    Quote Originally Posted by JimReid View Post
    Don't know what to do because the client would like to run several version of the spreadsheet with different options in the form.
    What is this process? You change/the client change parameters and export the report/query again?
    Do you add the different versions of the spreadsheets to the same workbook or is each different version of the spreadsheet in a different workbook?

  3. #18
    JimReid is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Jan 2022
    Location
    Erial , New Jersey
    Posts
    30
    Sorry frustration getting the best of me.

  4. #19
    JimReid is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Jan 2022
    Location
    Erial , New Jersey
    Posts
    30
    I didn't list the code because the program is very long. I finally got it working and it appears the Welshgasman was correct. In VBA you have to specifically identify every object or else by closing/nothing the objects it doesn't get rid of everything. Every reference to a Cell/Row/Formula, etc., has to be fully defined up through to WorkSheet or WorkBook or else it will be left behind when you close everything down. It will leave it in memory and not show on TaskMaster as Excel running but it will screw up you next running unless you close down the program and start over. Once I had all the elements fully defined and I shut down (ended the sub) I could then go back in are run again without shutting down the entire program. A lot of work fully referencing every element but worth it in the end to have it work correctly. So if anyone has a problem with VBA not shutting down properly this is probably the reason. Thanks everyone for their suggestions and help.

    JR

  5. #20
    ssanfu is offline Master of Nothing
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Well, I'm still curious about the code, but happy you figured out a solution.

    Good luck with your project......

  6. #21
    Minty is online now VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    Quote Originally Posted by JimReid View Post
    It will leave it in memory and not show on TaskMaster as Excel running but it will screw up you next running unless you close down the program and start over.JR
    Just to clarify this - The process will be available to see in the task manager but the App won't.

    You will have an orphaned process that you can shut down in the task manager, but it's buried way down the list.
    It's the orphaned process that causes the issue with the VBA not running correctly.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Access shut down
    By Tb9572001 in forum Access
    Replies: 3
    Last Post: 04-12-2021, 07:12 AM
  2. Force Front End Shut Down
    By acm007 in forum Access
    Replies: 2
    Last Post: 06-25-2018, 11:21 AM
  3. Replies: 7
    Last Post: 03-27-2014, 11:47 AM
  4. certain events shut down Access
    By markjkubicki in forum Forms
    Replies: 3
    Last Post: 02-28-2014, 02:37 PM
  5. After front end shut down - server shows still open!
    By skyview chick in forum Access
    Replies: 10
    Last Post: 07-10-2012, 04:14 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