Results 1 to 2 of 2
  1. #1
    nianko is offline Novice
    Windows XP Access 2000
    Join Date
    Aug 2010
    Posts
    21

    report updated with the result of a query

    Hi Forum,

    I have a select query, a form with a combo box (based on the select query) and a report (also based on the same query).
    When I select the name of an investor in my form through the cbo, the latest securities bought by this investors are displayed. I would like ot be able to print the result of this filter so I created a report with the following [event procedure]:

    Code:
    Private Sub Report_Open(Cancel As Integer)
    Me.RecordSource = frmLookUpByInvestors.RecordSource
    End Sub
    But I have an error:

    Run time error 424


    Object required

    What is the problem

    Thanks

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,522
    Try

    Me.RecordSource = Forms!frmLookUpByInvestors.RecordSource
    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. Replies: 2
    Last Post: 05-18-2010, 01:43 PM
  2. How do I determine a SQL query result?
    By Trainman in forum Database Design
    Replies: 1
    Last Post: 10-15-2009, 04:49 AM
  3. My report yields more than one result
    By hawzmolly in forum Reports
    Replies: 16
    Last Post: 07-04-2009, 10:30 AM
  4. Result of Count Query not known elsewhere
    By Carole in forum Access
    Replies: 1
    Last Post: 09-07-2008, 09:39 AM
  5. Return records not updated by update query
    By ars80 in forum Queries
    Replies: 2
    Last Post: 05-01-2006, 09:23 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