Results 1 to 2 of 2
  1. #1
    Brujeria5 is offline Novice
    Windows Vista Access 2007
    Join Date
    Jul 2009
    Posts
    1

    Creating input forms for queries?

    Let me apologize ahead of time for the n00b incoherence. So I'm not sure how to explain what I want here...I'm basically looking for the easiest way for a complete non-techie to perform a query for running a report. That is, can one create a form that will prompt them to enter the values by which the query will run? And if so, what is the way to set that up? Scenario looks like this:



    • I have a simple table that contains item name and date sold.
    • The user wants to run a regular report that will come back with all items sold in the last 5 years, but needs the ability to query for different year amounts (i.e. sales in last 2, 7, 10 years, etc.)
    • user is EXTREME technical novice - needs basic fill-in-blank or push button interface.
    I'm envisioning using the switchboard to give them choices on input/editing/reporting, and attaching a sort of query input form to it. Does that make sense? I know this is probably some extremely simple thing, but for some reason I can't seem to make this work in my head. All suggestions greatly appreciated!!!

  2. #2
    SoftwareMatters is offline Access VBA Developers
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2009
    Location
    Dorset
    Posts
    274
    Create a form (call it ReportForm) with a button that opens the report and a text box (called FromDate) where the user can enter a date.
    In the report query in the criteria for the date field put a reference back to the form like this:
    >= Forms!ReportForm!FromDate
    Now the report will show records starting from whatever date is entered in to the date field.

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

Similar Threads

  1. Creating input box for query
    By dcecil in forum Queries
    Replies: 1
    Last Post: 06-23-2009, 10:08 AM
  2. Creating professional looking forms.
    By Rameez in forum Forms
    Replies: 6
    Last Post: 06-19-2009, 03:56 AM
  3. Help with Queries and forms
    By dcwang3 in forum Access
    Replies: 0
    Last Post: 05-28-2009, 08:00 AM
  4. Replies: 4
    Last Post: 04-01-2009, 08:49 PM
  5. Combine queries results in forms
    By frasilvio in forum Queries
    Replies: 12
    Last Post: 01-10-2008, 01:34 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