Results 1 to 4 of 4
  1. #1
    tmartin is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Mar 2015
    Posts
    37

    Dynamically Controlling Document Tabs

    I have developed a Kiosk interface for an insurance database application. I have turned off the Ribbon and most controls. I would like to be able to turn on document tabs when I generate a report in view mode. If there were document tabs at the top the user could just get rid of the window.

    If I turn on the document tabs each windows that is present is under a different tab until they navigate backwards.

    The other option is to always print the report but would like to view it first.

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    You may be restricted by the Kiosk's monitor and available real estate. I combat the same issue by hiding Tabs and exporting reports as PDF files. I do not use Preview for Reports. If I do not have overlapping windows, I hide tabs.

  3. #3
    tmartin is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Mar 2015
    Posts
    37
    I ended up using this VBA Routine and then added the menu option to the report under Other. The baseline code then just
    implements the DoCmd.OpenReport (...) and pops up a message box telling the user they have to right-click to save or print the report.
    Its non-standard but not too confusing to the user

    Private Sub createNewMenu()
    Dim cmbRightClick As Office.CommandBar
    Dim cmbControl As Office.CommandBarControl

    ' Create the shortcut menu.
    Set cmbRightClick = CommandBars.Add("cmdReportRightClick", msoBarPopup, False, True)

    With cmbRightClick

    ' Add the Print command.
    Set cmbControl = .Controls.Add(msoControlButton, 2521, , , True)
    ' Change the caption displayed for the control.
    cmbControl.Caption = "Quick Print"

    ' Add the Print command.
    Set cmbControl = .Controls.Add(msoControlButton, 15948, , , True)
    ' Change the caption displayed for the control.
    cmbControl.Caption = "Select Pages"

    ' Add the Page Setup... command.
    Set cmbControl = .Controls.Add(msoControlButton, 247, , , True)
    ' Change the caption displayed for the control.
    cmbControl.Caption = "Page Setup"

    cmbControl.BeginGroup = True

    ' Add the PDF or XPS command.
    Set cmbControl = .Controls.Add(msoControlButton, 12499, , , True)
    ' Change the caption displayed for the control.
    cmbControl.Caption = "Save as PDF/XPS"

    cmbControl.BeginGroup = True

    Set cmbControl = .Controls.Add(msoControlButton, 106, , , True)
    ' Change the caption displayed for the control.
    cmbControl.Caption = "Close Report"
    End With

    Set cmbControl = Nothing
    Set cmbRightClick = Nothing
    End Sub

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Cool, that should look pretty clean.

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

Similar Threads

  1. subform controlling
    By Esmatullaharifi in forum Forms
    Replies: 2
    Last Post: 03-24-2015, 02:29 AM
  2. Controlling PDFs
    By Rob.Hill in forum Access
    Replies: 3
    Last Post: 07-14-2014, 01:04 PM
  3. Replies: 5
    Last Post: 01-23-2014, 09:36 AM
  4. Controlling subform resize
    By Deutz in forum Forms
    Replies: 2
    Last Post: 10-13-2011, 07:35 PM
  5. Controlling autonumber
    By Patience in forum Access
    Replies: 3
    Last Post: 06-22-2010, 04:11 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