Results 1 to 2 of 2
  1. #1
    DataRick is offline Novice
    Windows Vista Access 2007
    Join Date
    Feb 2012
    Location
    Boyertown, PA
    Posts
    8

    Designing a customizable report creator using forms & queries

    I'm not sure where to post this as it applies to forms, queries, and reports.



    I am trying to create a form that will populate parameters in a query and output the results as a printable report. I have created the query and the form that displays all the parameters in the query. I've also added a run button to the form that runs the query (I eventually plan to have it run the report but I thought I would get the query to work first). The end user will define the desired parameters on the form (note that they may choose some or all of the parameters).

    When I bring up the form, it seems to run the query without any parameters (it pulls all the records in the table). I don't want it to run the query until the user inputs the parameters. After you input some of the parameters and hit the run button, the query results pop up showing all the records in the table. It seems as if the query didn't recognize the parameters.

    I have written queries and reports before where a box pops up for each parameter. Do I somehow need to tell the query to get the parameters from the form? I've also built forms before but they were designed to input data directly in to tables.

    I've built many access database systems over the years for personal use but this is the first time I've built one as part of my job. I have minimal if any experience with the advanced capabilities of Access. I understand the basics behind relational database design and queries but now I'm trying to expand my knowledge base in to uncharted waters! Any help is greatly appreciated!!!

    I've attached a brief explanation of how the database is modeled.
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Review tutorials at http://datapigtechnologies.com/AccessMain.htm especially Build a Custom Filter in Your Form and Creating a Basic Search Form in the Access Forms: Tips and Techniques section. Set up the parameters for the report's RecordSource query as described in the tutorials.
    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.

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

Similar Threads

  1. Customizable Report for User?
    By Heatshiver in forum Reports
    Replies: 1
    Last Post: 03-02-2012, 12:27 AM
  2. Replies: 7
    Last Post: 05-12-2011, 01:08 PM
  3. ODBC Creator automatically
    By pkstormy in forum Code Repository
    Replies: 0
    Last Post: 08-24-2010, 12:15 AM
  4. Help with Queries and forms
    By dcwang3 in forum Access
    Replies: 0
    Last Post: 05-28-2009, 08:00 AM
  5. Replies: 4
    Last Post: 04-01-2009, 08:49 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