Results 1 to 3 of 3
  1. #1
    tuniwes is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Nov 2015
    Posts
    43

    Code for activating another report filtered by the original report

    Hi Guys

    First post here, I'm struggling with how to dynamically pull up another report based on double clicking a field in the first report



    I have a report...."shipping" that has an Item number as one of the fields. What I want to do is launch a second report "Factory WIP" filtered by the Item number that was double clicked on.

    I know this has probably been covered somewhere before, I have a great generic database that is mostly covered by "right click" contains but this would be the "icing on the cake"

    Any help please would be most appreciated.....I have a dim and fond back ground in the DOS world of Dbase4(I swear it is still quicker for some things) but have to admit that VBA code is baffling to me

    Thanks in advance

    Ian

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    The report would have to be in ReportView, not PrintPreview. PrintPreview is not interactive.

    Code in report DblClick event would work. However, clicking on textboxes in group/report header/footer sections will not work, must click on rows in the Detail section.
    Or the textbox DblClick event.

    DoCmd.OpenReport "Factory WIP", , , "Item=" & Me.Item
    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
    tuniwes is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Nov 2015
    Posts
    43
    Quote Originally Posted by June7 View Post
    The report would have to be in ReportView, not PrintPreview. PrintPreview is not interactive.

    Code in report DblClick event would work. However, clicking on textboxes in group/report header/footer sections will not work, must click on rows in the Detail section.
    Or the textbox DblClick event.

    DoCmd.OpenReport "Factory WIP", , , "Item=" & Me.Item
    Thanks for your reply, when I tried the code as soon as I double clicked the item it started to print the wip report rather than open it normal report view.

    how can I remedy this please

    Thanks for your help

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

Similar Threads

  1. Replies: 5
    Last Post: 03-03-2014, 11:07 PM
  2. Filtered Report from filtered datasheet form
    By gemadan96 in forum Reports
    Replies: 7
    Last Post: 01-03-2014, 05:12 PM
  3. copyied report is referencing original
    By markjkubicki in forum Reports
    Replies: 2
    Last Post: 07-25-2013, 11:25 AM
  4. Replies: 3
    Last Post: 11-06-2012, 03:25 PM
  5. Activating A Drop Down Box Via Code
    By orcinus in forum Programming
    Replies: 2
    Last Post: 08-11-2011, 03:04 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