Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    NOTE: I sent this reply without seeing your comments in post #15



    Rather than wait for your reply, I had a look at it anyway.
    As you mentioned, the form locked up completely after the report was closed and I had to use task manager to recover.

    I've got it working with various code changes all of which I've documented. Some important points
    1. ALWAYS use the line Option Explicit in each code module
    2. I've removed the popup property for the report. It isn't needed & was preventing the print preview ribbon being displayed
    3. The form MUST stay as popup otherwise it would be hidden along with the application interface. That means it MUST be closed or it will show on top of the report.
    In any case its not needed whilst the report is opened. Just reopen it when closing the report
    4. Modal property wasn't needed for form or report with this example. However it works whether or not modal property is set. I've left it on.

    Hope that helps
    Attached Files Attached Files
    Last edited by isladogs; 11-02-2021 at 11:51 AM.
    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!

  2. #17
    Lhoj is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Jun 2021
    Posts
    94
    Ok, it's official, I don't get Access and VB. So, I've checked your version, seen that the form remains as it was in mine (modal and popup) and the only instruction when it loads is the HideAppWindow. Well, mine is showing the form, yours for some reason isn't. Everything appears hidden and clicking on the taskbar or alt-tabbing doesn't bring it back (I have to kill the process).

    Anyway, as I said I've found kind of a workaround for keeping the form open and bringing the report to the front so I'll stick to that for the time being. If I have some time in the near future to dump on this project I'll try to change the workflow of the whole DB to keep a single item open at any time.

  3. #18
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    No. Its not you.
    There was a problem with the file I uploaded. Sorry!

    I removed the form modal status temporarily then reinstated it.
    It now works...at least for me
    No code changes made.
    Try the new version and let me know
    Attached Files Attached Files
    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!

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

Similar Threads

  1. Form Interface
    By k11ngy in forum Forms
    Replies: 3
    Last Post: 11-09-2019, 12:36 PM
  2. Replies: 7
    Last Post: 03-21-2018, 01:26 PM
  3. User Interface
    By scubagal in forum Access
    Replies: 3
    Last Post: 07-26-2011, 02:21 PM
  4. Replies: 0
    Last Post: 01-18-2011, 07:09 AM
  5. Web interface
    By knightjp in forum Database Design
    Replies: 0
    Last Post: 04-01-2009, 09:31 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