Results 1 to 2 of 2
  1. #1
    kassem is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    22

    How to open report based on query i created using query wizard.


    So i created a report already and a query using the query wizard. How can write the vba to run this query and open the reports which meet the conditions. The query i created using the wizard is called Tester1 and the report is called Estimates.

    Thanks.

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    the simplest thing to do is put criteria in your query like [Enter the Value]

    The user will then be prompted with a box that says "Enter the Value" and an area to type in what they are looking for.

    If you want to relate the query to something that is appearing on a form you can use a criteria of [forms]![formname]![fieldname] where formname would be the name of your form and fieldname would be the value that's in the field you want to report on.

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

Similar Threads

  1. Replies: 2
    Last Post: 10-31-2013, 07:08 AM
  2. Help on report to open form to open query...
    By saseymour in forum Programming
    Replies: 13
    Last Post: 07-16-2013, 08:11 AM
  3. Replies: 0
    Last Post: 11-30-2011, 02:01 PM
  4. Open form based on query results
    By RobbertH in forum Queries
    Replies: 1
    Last Post: 02-10-2010, 08:13 AM
  5. Replies: 2
    Last Post: 08-20-2009, 07: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