Results 1 to 10 of 10
  1. #1
    LindaRuble is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    63

    Anchoring a button in an Access Report to always be at top-right corner

    Hello,

    I would like to be able to "Anchor" a button in a report so that the button is always in the top left corner no matter how the report is sized or even if the report goes beyond the width of the monitor screen. In other words, you will always see the button on the top right hand corner even if you have to horizontally scroll to get to the right most end of the report. I want the button always at the top-right hand corner, visible and accessable.



    I know that you can do that sort of thing with an Access Form but I can not find the same Anchoring ability for an Access Report. For a Form when you are in "Design View" and click on a button that you want to anchor, you can go to the Arrange tab -> and in the "Size" panel you click "Anchoring". You will get a fly-out and you can select "top-left", "top-right", etc.

    I am hoping that there is a way to do the same for Reports. Perhaps with VBA?

    Thanks

    Click image for larger version. 

Name:	Anchoring.JPG 
Views:	19 
Size:	41.4 KB 
ID:	11632

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Never heard of nor used 'anchoring' on forms. Not sure what it does.

    Reports are not intended to be interactive. Buttons won't even work from Print Preview. I tested placing a button in upper left of report Header section. It stays there.

    Not really understanding your issue.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    LindaRuble is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    63
    Hello June7,

    What I need to happen is to place the button on the TOP-RIGHT corner. I do NOT want to have the button stay in the same place. It needs to move so that it does not get cut off since the report is wider then the monitor screen. The report scrolls from side to side. I want to always be able to see the button on the TOP-RIGHT hand corner of the report, at the top right corner of the computer monitor. BTW, this button closes the form.

    Hope this better explains what I want.

    Thanks


    Linda



    Quote Originally Posted by June7 View Post
    Never heard of nor used 'anchoring' on forms. Not sure what it does.

    Reports are not intended to be interactive. Buttons won't even work from Print Preview. I tested placing a button in upper left of report Header section. It stays there.

    Not really understanding your issue.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Oh, your post referenced both top-right and top-left so was a bit confusing.

    The button closes form or report (you said 'form')?

    Why not just use the intrinsic X close?

    Since reports are not intended to be interactive, MS thought it made sense not to offer same options on reports that are available on forms. Forms can be manipulated by code or property settings even after opened but reports are different animals. Just can't do some things, not even with VBA. Altering a report after it is rendered is one of those things.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    LindaRuble is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    63
    Hi,

    The intrinsic X to close the report for some reason does not shut down the application, just closes the report. Since I have hidden the main application window and always close the previous pop-up, modal form or report when opening another form or report, I have no way to shut down the application. This is a problem when I want to launch my application again since it does not launch (or at least I don't see it - probably because of the hidden application window). The only way to shut down the application at this point is to hit control, alt, & delete to bring up the Windows Task Manager.

    That is why I use the use the close button.

    I understand that reports are different than forms but I was hoping that some genious on this forum would have a work around.

    Hope someone comes up with the answer.

    Linda


    Quote Originally Posted by June7 View Post
    Oh, your post referenced both top-right and top-left so was a bit confusing.

    The button closes form or report (you said 'form')?

    Why not just use the intrinsic X close?

    Since reports are not intended to be interactive, MS thought it made sense not to offer same options on reports that are available on forms. Forms can be manipulated by code or property settings even after opened but reports are different animals. Just can't do some things, not even with VBA. Altering a report after it is rendered is one of those things.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    You want the app to close when this report is closed?

    Can have code in the report Close event.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    LindaRuble is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    63
    Please tell me how to do this. Thanks

    Linda


    Quote Originally Posted by June7 View Post
    You want the app to close when this report is closed?

    Can have code in the report Close event.

  8. #8
    LindaRuble is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    63
    Never mind. I wasn't thinking. Know how to do it. Thanks


    Quote Originally Posted by June7 View Post
    You want the app to close when this report is closed?

    Can have code in the report Close event.

  9. #9
    LindaRuble is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    63
    OK, new problem. When I assign close code to report close event, even when I click a button to go to another page, the page that you are leaving is programed to close so the entire program closes before the next page opens. Hmmm...

  10. #10
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Don't know what you mean by 'page'. Describe in plain English what you want to do. Post code for analysis.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 5
    Last Post: 03-14-2013, 09:42 AM
  2. Report button in Form
    By drobizzle in forum Forms
    Replies: 5
    Last Post: 07-17-2011, 03:09 AM
  3. How to add button on report?
    By farhanahmed in forum Reports
    Replies: 3
    Last Post: 03-24-2011, 10:30 AM
  4. Button to run report off Primary Key
    By tdanko128 in forum Access
    Replies: 23
    Last Post: 01-31-2011, 12:29 PM
  5. Button to open a Report
    By 95DSM in forum Reports
    Replies: 1
    Last Post: 07-09-2010, 11:11 AM

Tags for this Thread

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