Page 1 of 2 12 LastLast
Results 1 to 15 of 28
  1. #1
    webisti is offline The Wisher
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    115

    Display in a form multiple results


    Hi I am creating a database with players and teams. all saved in one table Participants
    I am creating a form where by choosing the team number it would show in two separate sub forms (not necessarily) the profiles of the players for that team.
    Do you have any ideas on how to do that?

    Regards

    Webisti

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by webisti View Post
    Hi I am creating a database with players and teams...
    If I make assumptions about what a player is and what a team is I would suggest these two entities deserve their own, separate, table.

    If it is all in one table, I suppose there is a field that describes the team. You could use this field within a WHERE clause to retrieve specific records.

  3. #3
    webisti is offline The Wisher
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    115
    There is a team ID actually. So by selecting the team ID the coach can compare the profiles of the players.

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by webisti View Post
    There is a team ID actually...
    This sounds like there are two tables and "team ID" is a Foreign Key to the PK of your Teams table. This would be good.

    Include the team ID field in a query. You can use the query builder to aid in creating WHERE clauses. Add criteria to the grid towards the bottom of the window while in design view. Use the appropriate field.

  5. #5
    webisti is offline The Wisher
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    115
    In order to have a clearer view here is the db I m trying to create with the player comparison:
    any help would be appreciated.

    regards

    Webisti
    Attached Files Attached Files

  6. #6
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    I looked at your DB and I am still not understanding your objective. I think there are serious issues with your approach having only one table. However, you may be able to accomplish what you want by building a subform and linking your Main/Child on the team field. You could base your Main form on the table and your subform on the query, editing the query where needed.

    For more info on table structure here are some tutorials.
    https://www.accessforums.net/tutoria...ase-45451.html

  7. #7
    webisti is offline The Wisher
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    115
    basically it is a comparison table for viewing the players. Nothing more. The team Id is the as a key but contains two players max.
    What I want is that in the form by selecting the team id the coach can see the profiles of both players.

  8. #8
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by webisti View Post
    ...What I want is that in the form by selecting the team id the coach can see the profiles of both players.
    Try implementing a subform.

  9. #9
    webisti is offline The Wisher
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    115
    Already trying.. will let know if it works

  10. #10
    webisti is offline The Wisher
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    115
    So far unsuccesful to do it as i wished.

  11. #11
    webisti is offline The Wisher
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    115
    anyone tried to look at this? I am not so often using access therefore sometimes get lost.
    any help on using the db as a sample would be greatly appreciated.
    regards

    Webisti

  12. #12
    cbende2's Avatar
    cbende2 is offline Competent Performer
    Windows 7 32bit Access 2013
    Join Date
    Jun 2014
    Location
    Louisiana
    Posts
    370
    I tried to do what you said, let me know if you need more help.

    SAMPLES.zip

  13. #13
    webisti is offline The Wisher
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    115
    Hi Cbende2
    cannot open you attachment

  14. #14
    webisti is offline The Wisher
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    115
    Ok I did checked it but still is showing the same player twice and not a single player per text form.
    What I wanted is that when selecting the team both players would appear. two different players beside each other,

  15. #15
    cbende2's Avatar
    cbende2 is offline Competent Performer
    Windows 7 32bit Access 2013
    Join Date
    Jun 2014
    Location
    Louisiana
    Posts
    370
    It's not showing the same player twice, check again. And I'll try to make it appear side by side.

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 5
    Last Post: 01-03-2013, 01:38 PM
  2. Display QUERY results into SUB FORM
    By taimysho0 in forum Programming
    Replies: 9
    Last Post: 11-23-2011, 12:26 PM
  3. Display Query Results on a Form
    By P5C768 in forum Queries
    Replies: 5
    Last Post: 05-04-2010, 11:04 AM
  4. display query results in a form
    By P5C768 in forum Queries
    Replies: 3
    Last Post: 08-14-2009, 03:02 PM
  5. Form to display results
    By Zholt in forum Forms
    Replies: 9
    Last Post: 05-07-2009, 10:09 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