Results 1 to 4 of 4
  1. #1
    peshonzi is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2011
    Posts
    21

    Question 3 Reports with 1 Query

    Hello.



    I've created a form that has two subforms . Each of them wants me to input a date, that is the same for the three of them.

    So, the question is:

    How to create a query that inputs three similar dates in three different forms ?

  2. #2
    apr pillai's Avatar
    apr pillai is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    May 2010
    Location
    Alappuzha, India
    Posts
    209

    3 Reports with 1 Query

    1. Create a temporary table with a Date Field and with a single record.
    2. Place the Table on the Query and use the Date Field as criteria.
    3. All you have to do is to change the Date on the parameter table.
    4. Design a small Form on the parameter table with a Command Button to launch the Main Form.
    5. After setting the new date Click on the Command Button to Open the Main form with the Sub-Forms.


    Sample code for Opening the Form:

    Code:
    Private Sub cmdOpen_Click()
         Docmd.OpenForm "Main", acNormal
    End Sub

  3. #3
    peshonzi is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2011
    Posts
    21
    That's a smart way, but unfortunately, it doesn't work.

    Probably I don't have the right SQL code... which I even don'y know how to write...

    PLEASE HELP ME !

  4. #4
    peshonzi is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2011
    Posts
    21

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

Similar Threads

  1. Print query records to reports and save as pdf
    By abhay_547 in forum Programming
    Replies: 0
    Last Post: 05-09-2011, 12:00 PM
  2. Query output for forms & reports
    By Dega in forum Forms
    Replies: 2
    Last Post: 08-20-2010, 12:45 PM
  3. Export Access reports/query results to Outlook Calendar/Task
    By kfinpgh in forum Import/Export Data
    Replies: 0
    Last Post: 02-22-2007, 01:09 PM
  4. Form that runs query and creates reports
    By Valeda in forum Forms
    Replies: 2
    Last Post: 05-04-2006, 07:01 AM
  5. Creating multiple reports from one Query
    By Mike Cooper in forum Reports
    Replies: 5
    Last Post: 04-24-2006, 05:00 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