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

    Relationships - GroupID


    Hi

    I have attached a diagram of the relationships (one to many) for this table.

    The problem is where to put a GroupID and as of now the GroupID does not replicate in the tblBookings.

    A group ID is needed as there can be as many as four persons per room and while travelling (motorcoach) there could be as many as 15 people who wish to sit near each other, and in this case assigning a group ID seems logical.

    A GroupID and GroupName may make life easier (me) even for two people booking one room. Single bookings are rare.

    What I am struggling with is where best this GroupID and GroupName belongs (table)?

    After the tblCustomers is complete it would be then determined if a group was needed then enter it. Then I would have to have some kind of lookup where I could add persons to a group at a later time. To prevent typo's I would need to have some sort of query/list displaying the GroupName and then insert this into the appropriate table. (What table?)

    I may be making this more complicated than it should be, but I thought the GroupID would replicate to the tblBookings without a problem.

    I have tried several various table relationships without any progress.

    Thanks

  2. #2
    llkhoutx is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Houston, Texas USA
    Posts
    373
    tblCustomers should not be linked to tblBookings. The IDs do not automatically replicate, but they will in a form, subform, subsubform object.

  3. #3
    Dega is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Calgary, AB
    Posts
    73
    Thanks and I corrected that.

    I still cannot get tblGroup.GroupID to replicate to the tblBookings.GroupID and uncertain if I even need this?

    Cheers

  4. #4
    llkhoutx is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Houston, Texas USA
    Posts
    373
    What are you doing that makes you think the IDs should be replicated in related tables?

    I previously said
    The IDs do not automatically replicate, but they will in a form, subform, subsubform object.

  5. #5
    Dega is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Calgary, AB
    Posts
    73
    I though it may be easier to query if the GroupID was in the tblBookings?

    I am using some subforms (dragging tables) but have no luck with the GroupID relationships. (tblBookings)

    The idea is to assign a group ID and Group Name to those sharing a room. Up to four people can share one room (Single,Double,Triple,Quad).

    There are also larger groups who may have 2 to a room and have 10 rooms allocated as well as sitting (Group) near each other in a motorcoach or doing something like going to see a show or event.

    I have to submit occupancy reports to hotels (names, occupancy, groups and special requests) and generate reservation reports to customers giving them their booking details.

    This is not a room reservation system but rather a small tour operators database.

    Thanks
    Last edited by Dega; 01-28-2010 at 10:12 PM. Reason: more info

  6. #6
    llkhoutx is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Houston, Texas USA
    Posts
    373
    Queries will update the child and grandchild foreign keys appropriately.

    Are your tables joined in your queries?

    Post PDF(s) of your query(queries) in design view.

  7. #7
    llkhoutx is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Houston, Texas USA
    Posts
    373
    Check the relationship view of the tables and be sure that cascading updates and cascading deletes checkboxes are checked for the table relationships.

  8. #8
    Dega is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Calgary, AB
    Posts
    73
    I don't have any query's made up yet as I have been stuck on wether my table design/relationships are correct?

    I have worked with mySQL and simple access databases (html, cfml) previously, but the access 2007 interface and especially form handling is completely new to me.

    Sorry to say I have spent days trying to figure this out (my bad!) but once I get the idea behind assigning those GroupID's to certain customers (not all) then I think I can create the forms/interface for data entry and some query's. It most likely not be usable to anyone else but myself until I get it user friendly, as time is closing in on me.

    Thanks ...

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

Similar Threads

  1. 8 Tables with Relationships
    By bigdogxv in forum Access
    Replies: 1
    Last Post: 12-09-2009, 09:37 PM
  2. Tables Vs Relationships
    By Bruzer in forum Database Design
    Replies: 8
    Last Post: 09-06-2009, 04:39 PM
  3. Table Relationships
    By jp2access in forum Database Design
    Replies: 3
    Last Post: 06-19-2009, 10:20 AM
  4. Help on Tables/relationships?
    By mistaken_myst in forum Database Design
    Replies: 3
    Last Post: 04-01-2009, 05:16 PM
  5. I need help on relationships for tables.
    By justin.w in forum Access
    Replies: 0
    Last Post: 10-16-2006, 10:57 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