Results 1 to 2 of 2
  1. #1
    GEPC is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2010
    Posts
    5

    Opening one report for current form???

    I have the following code which, when executed, asks me for the parameter value Node:



    If Forms![Volume Input]!IntersectionType.Value = "Traditional" Then
    DoCmd.OpenReport "Traditional", acViewPreview, , "[Node]=Forms![Volume Input]!Node"

    I want the code to open the current forms report only. I dont want the report to print out all records because each record will have a different report type (intersectionType.value)

    Any advice on what I am doing wrong???

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    See if this helps:

    BaldyWeb wherecondition

    It works the same for OpenReport.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Email a report of the current record.
    By jonudden in forum Reports
    Replies: 4
    Last Post: 08-21-2023, 07:37 AM
  2. Query current view in form
    By smikkelsen in forum Forms
    Replies: 6
    Last Post: 05-02-2010, 08:06 AM
  3. Replies: 3
    Last Post: 02-28-2010, 11:05 PM
  4. Replies: 3
    Last Post: 10-19-2009, 01:14 PM
  5. Open form to current record
    By rbpd5015 in forum Access
    Replies: 1
    Last Post: 08-28-2009, 01:53 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