Results 1 to 3 of 3
  1. #1
    bscottj48 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Apr 2015
    Posts
    3

    Help with Report viewing and printing

    I have a small db. I have set it up to be very user friendly (I hope). When a user clicks on the icon to open the db, the app window auto hides and the user sees just the start form. On all other subsequent forms, the app window stays hidden. The user can go from form to form and back and still not "see" the app window. HOWEVER, when the user clicks the button to print the form (I have code for it to open in Print Preview in order for them to choose their own print settings), the report is not showing in front of the form. The user has to click on the Access Prgm icon and the report shows then. i would like the report to come to the front (in front of the form).



    This is the code I am using for the report.

    Option Compare Database
    Option Explicit


    Private Sub Report_Load()


    'Removing all access information code
    'Global Const SW_HIDE = 0
    'Global Const SW_SHOWNORMAL = 1
    'Global Const SW_SHOWMINIMIZED = 2
    'Global Const SW_SHOWMAXIMIZED = 3
    'User one of the following below:
    'Call Module2.fSetAccessWindow(0)
    'Call Module2.fSetAccessWindow(1)
    Call Module2.fSetAccessWindow(2)
    'Call Module2.fSetAccessWindow(3)
    End Sub


    Private Sub Report_Open(Cancel As Integer)
    Forms![Issue_Details].Visible = False
    DoCmd.SelectObject acTable, , True
    ' DoCmd.RunCommand acCmdWindowHide
    Reports![rptIssues].Visible = True
    End Sub



    Not smart enough to figure this out. Please help.
    Last edited by pbaldy; 04-14-2015 at 12:55 PM. Reason: delete links

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Are forms set as Popup?
    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
    bscottj48 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Apr 2015
    Posts
    3
    I'm an idiot. They were set to "yes" on PopUp and Modal. I did the same with the Report, and it works great. Thanks, for your help.

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

Similar Threads

  1. Viewing a Report
    By Robert2150 in forum Access
    Replies: 3
    Last Post: 03-02-2015, 07:42 PM
  2. Replies: 3
    Last Post: 12-04-2014, 10:12 AM
  3. Viewing a Report prior to printing.
    By Robert2150 in forum Reports
    Replies: 3
    Last Post: 10-26-2014, 10:27 AM
  4. DoCmd.RunSQL and Viewing a Report
    By Nuke1096 in forum Access
    Replies: 2
    Last Post: 12-12-2013, 02:02 PM
  5. Replies: 1
    Last Post: 08-10-2011, 06:28 AM

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