Results 1 to 6 of 6
  1. #1
    ariansman is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2013
    Posts
    55

    Have a Form or Report on top


    Hello,
    After I open a Form or Report which is on "pop up", how can I set it to come on top of other open Forms/Reports?
    Thank you

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    10,668
    Also set the modal property to true

    modal means you canít change focus to other forms until it is closed. If you donít want that, in the form open event, use code to change it to false

  3. #3
    davegri's Avatar
    davegri is offline Excess Access
    Windows 11 Access 2019
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,176
    You can do something like this:

    DoCmd.OpenReport "StatementOfAccount", acViewReport, , sCrit
    DoCmd.SelectObject acReport, "StatementOfAccount" 'bring to front

  4. #4
    ariansman is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2013
    Posts
    55
    Is "StatementOfAccount" the name of the Form or Report?
    Should I put the code in the VBA part of the Form/Report?
    Thank you

  5. #5
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    10,668
    what do the parameters say?

  6. #6
    davegri's Avatar
    davegri is offline Excess Access
    Windows 11 Access 2019
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,176
    Quote Originally Posted by ariansman View Post
    Is "StatementOfAccount" the name of the Form or Report?
    Should I put the code in the VBA part of the Form/Report?
    Thank you
    StatementOfAccount is the report. You can easily see that by scanning the code.
    The code would go wherever your current code is opening the report, probably behind a form.

    The code given is a general case, meant as a guide. It will need to be adapted to fit your specific requirement.

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

Similar Threads

  1. Replies: 4
    Last Post: 12-09-2015, 09:02 AM
  2. Replies: 3
    Last Post: 10-19-2015, 11:05 PM
  3. Replies: 3
    Last Post: 03-11-2013, 05:11 PM
  4. Replies: 1
    Last Post: 06-26-2012, 08:19 PM
  5. Replies: 4
    Last Post: 12-13-2010, 05:33 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