Microsoft Access Forums

Go Back   Microsoft Access Forums > Access Forums > Database Design

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 01-27-2010, 11:45 AM
Dega Dega is offline Windows Vista Access 2007 (version 12.0)
Advanced Beginner
 
Join Date: Jan 2010
Location: Calgary, AB
Posts: 38
Dega is on a distinguished road
Default 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
Attached Files
File Type: pdf relationships.pdf (24.6 KB, 4 views)
Reply With Quote
  #2  
Old 01-28-2010, 06:11 PM
llkhoutx llkhoutx is offline Windows Vista Access 2007 (version 12.0)
Expert
 
Join Date: Jan 2010
Location: Houston, Texas USA
Posts: 340
llkhoutx is on a distinguished road
Default

tblCustomers should not be linked to tblBookings. The IDs do not automatically replicate, but they will in a form, subform, subsubform object.
Reply With Quote
  #3  
Old 01-28-2010, 06:44 PM
Dega Dega is offline Windows Vista Access 2007 (version 12.0)
Advanced Beginner
 
Join Date: Jan 2010
Location: Calgary, AB
Posts: 38
Dega is on a distinguished road
Default

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
Reply With Quote
  #4  
Old 01-28-2010, 06:47 PM
llkhoutx llkhoutx is offline Windows Vista Access 2007 (version 12.0)
Expert
 
Join Date: Jan 2010
Location: Houston, Texas USA
Posts: 340
llkhoutx is on a distinguished road
Default

What are you doing that makes you think the IDs should be replicated in related tables?

I previously said
Quote:
The IDs do not automatically replicate, but they will in a form, subform, subsubform object.
Reply With Quote
  #5  
Old 01-28-2010, 07:09 PM
Dega Dega is offline Windows Vista Access 2007 (version 12.0)
Advanced Beginner
 
Join Date: Jan 2010
Location: Calgary, AB
Posts: 38
Dega is on a distinguished road
Default

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 07:12 PM. Reason: more info
Reply With Quote
  #6  
Old 01-28-2010, 07:18 PM
llkhoutx llkhoutx is offline Windows Vista Access 2007 (version 12.0)
Expert
 
Join Date: Jan 2010
Location: Houston, Texas USA
Posts: 340
llkhoutx is on a distinguished road
Default

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.
Reply With Quote
  #7  
Old 01-28-2010, 07:34 PM
llkhoutx llkhoutx is offline Windows Vista Access 2007 (version 12.0)
Expert
 
Join Date: Jan 2010
Location: Houston, Texas USA
Posts: 340
llkhoutx is on a distinguished road
Default

Check the relationship view of the tables and be sure that cascading updates and cascading deletes checkboxes are checked for the table relationships.
Reply With Quote
  #8  
Old 01-28-2010, 07:41 PM
Dega Dega is offline Windows Vista Access 2007 (version 12.0)
Advanced Beginner
 
Join Date: Jan 2010
Location: Calgary, AB
Posts: 38
Dega is on a distinguished road
Default

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 ...
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
8 Tables with Relationships bigdogxv Access 1 12-09-2009 06:37 PM
Tables Vs Relationships Bruzer Database Design 8 09-06-2009 02:39 PM
Table Relationships jp2access Database Design 3 06-19-2009 08:20 AM
Help on Tables/relationships? mistaken_myst Database Design 3 04-01-2009 03:16 PM
I need help on relationships for tables. justin.w Access 0 10-16-2006 08:57 AM


All times are GMT -8. The time now is 02:41 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.