Results 1 to 3 of 3
  1. #1
    Dega is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Calgary, AB
    Posts
    73

    Query output for forms & reports

    I have one main form and three sub forms based upon CustID.

    One sub form takes tour details from "booker" and "guest"

    The other sub form takes room details from "booker"



    The remaining sub form takes room details from "guest"

    Everything works fine at this point and guest always is given a RoomGroupID and a RoomGroupName which is the "booker" LastName.

    As up to four people can be in one room the "booker" is the team leader and the other one, two or three persons are "guest". There can be a dozen groups of various guest sizes (2,3,4).

    I am trying to show all all those persons belonging to one group (RoomGroupName/RoomGroupID) on a form and more important on a report given to customers, but so far I can only get one record to show based upon the forms/report having focus on the CustID.

    I had two records show at one time but have changed the query so many times ... can't remember how I did that even though it was only partly right.

    My queries and tables output the correct data but once they are part of the form or report they show only single records associated with the CustID. I need all of those in that group to be shown.

    Do I have to loop this query or something similar.

    I am not a VB guy ...

    Thanks
    Last edited by Dega; 08-19-2010 at 09:27 PM. Reason: forgot

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    This isn't a VB issue. You discuss forms, but what is key are the tables. The table that holds Booker/Guests should list all their names, etc....with a field that identifies each as booker or guest, plus also a field that ties them all together into the same group like a trip ID.

    (A more professional variation of this is if you have frequent repeat guests - such that it is better to have their data in its own standalone table, and make a 'transaction' table that cross references guests, trip ID, booker/guest role )

    In any case; once you have all the participants tied together with a common TripID you should have no problem in a query to pull them all up together for a report.

    Hope this makes sense.

  3. #3
    Dega is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Calgary, AB
    Posts
    73
    Thank you for your suggestion and this is what I will do.

    Cheers

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

Similar Threads

  1. Queries, Forms, Reports..
    By groundhog in forum Access
    Replies: 3
    Last Post: 07-07-2010, 12:30 PM
  2. Forms and Reports
    By nacho in forum Forms
    Replies: 3
    Last Post: 04-17-2010, 01:06 AM
  3. Emailing forms or reports
    By dcecil in forum Reports
    Replies: 6
    Last Post: 12-16-2009, 07:57 AM
  4. Output Query to Text
    By denileigh in forum Queries
    Replies: 1
    Last Post: 05-27-2006, 12:34 PM
  5. How to output only current record in query
    By mslieder in forum Access
    Replies: 0
    Last Post: 01-20-2006, 05:48 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