Results 1 to 2 of 2
  1. #1
    clchris_80 is offline Novice
    Windows 8 Access 2013
    Join Date
    Jan 2013
    Posts
    6

    Another Problem opening a report using a Macro

    So I have a form in Datasheet view and when you click on a record in that form I want it to take you to a report with all the details of that record number. I have the On Click event set to run a Macro. The Macro is as follows:

    OpenReport
    Report Name Incident Report
    View Report
    Filter Name Open
    Where Condition =[Event ID]=[Reports]!Incident Report]![Event ID]


    Window Mode Normal

    This Where Condition works for me open another form from the form with the same Event ID. Why does it come to a "new" Incident on the report?

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    I don't work with Macros, but use VBA. So I am unsure, but shouldn't your
    WHERE Condition reference the form and not the report. ie. Where Condition =[Event ID]=[Forms]!YourFormName![Event ID]

    I don't know if this is a typo or not, but you have one closed bracket on Incident Report but do not have a corresponding open bracket.

    Alan

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

Similar Threads

  1. Problem with opening the database
    By sk88 in forum Access
    Replies: 4
    Last Post: 03-01-2012, 01:33 PM
  2. Problem While Opening DataBase.
    By cap.zadi in forum Access
    Replies: 2
    Last Post: 12-13-2011, 08:34 AM
  3. Replies: 0
    Last Post: 01-12-2011, 12:43 PM
  4. report opening problem
    By combine21 in forum Reports
    Replies: 1
    Last Post: 09-27-2010, 02:15 PM
  5. problem opening .mdb file
    By honeybee in forum Access
    Replies: 7
    Last Post: 06-25-2010, 11:33 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