A
andreainpanama
2 weeks of trying to figure this out...i give up and seek your help!
Scenario: Small Backpackers Hostel
Goal of Database: To maintain records of all my guests and their stays at
my guests. Not to be a reservation system.
What I have done seemingly successfully:
A guest table (Parent? The One Side of the Relationship?) that contains the
following fields of importance to you guys:
Autonumber Field (Primary Key)
My Record Number (A number that I assign)
Last Name
First Name
Nationality
Passport Number
A Bookings Table (Child Table? The Many Side?)
Autonumber Field (Primary Key)
My Record Number (A number that I assign)
Date of Stay
Name of Room
Number of Nights
Price Per Night
A Room Table (Child Table?)
Name of Room (Primary Key)
Room Description
Price Per Night
My current relationships:
I have a referential integrity line connecting My Guest Table "Autonumber
Field" to My Booking Table "Our Record Number Field." On the Guest Table
Side of the line there is the small digit #1 and on my Bookings Table side
of the line there is a number 8 symbol lying down.
All of this stuff is apparently correctly connected to a form that I have
created that lets me enter all the data and is connected to a query.
The Problem:
For some reason, the form does not let me save the guest table data if I
have not filled anything in in the booking table fields. PERFECT! that is
what I want...not to be able to save a guest record if the guest does not
have any booking data. However the form DOES allow me to save the booking
data, even if I have not filled in any Guest Data fields. This is what I
have been struggling with for weeks! Why is the form allowing me to save the
booking data without the guest data? I will end up with orphans and I don't
want any!
I think that the problem is because I am having problems with the concepts
or perhaps I am trying to solve an unsolvable issue.
Can I get some relationship counseling?
Thank you SO MUCH!!!
Scenario: Small Backpackers Hostel
Goal of Database: To maintain records of all my guests and their stays at
my guests. Not to be a reservation system.
What I have done seemingly successfully:
A guest table (Parent? The One Side of the Relationship?) that contains the
following fields of importance to you guys:
Autonumber Field (Primary Key)
My Record Number (A number that I assign)
Last Name
First Name
Nationality
Passport Number
A Bookings Table (Child Table? The Many Side?)
Autonumber Field (Primary Key)
My Record Number (A number that I assign)
Date of Stay
Name of Room
Number of Nights
Price Per Night
A Room Table (Child Table?)
Name of Room (Primary Key)
Room Description
Price Per Night
My current relationships:
I have a referential integrity line connecting My Guest Table "Autonumber
Field" to My Booking Table "Our Record Number Field." On the Guest Table
Side of the line there is the small digit #1 and on my Bookings Table side
of the line there is a number 8 symbol lying down.
All of this stuff is apparently correctly connected to a form that I have
created that lets me enter all the data and is connected to a query.
The Problem:
For some reason, the form does not let me save the guest table data if I
have not filled anything in in the booking table fields. PERFECT! that is
what I want...not to be able to save a guest record if the guest does not
have any booking data. However the form DOES allow me to save the booking
data, even if I have not filled in any Guest Data fields. This is what I
have been struggling with for weeks! Why is the form allowing me to save the
booking data without the guest data? I will end up with orphans and I don't
want any!
I think that the problem is because I am having problems with the concepts
or perhaps I am trying to solve an unsolvable issue.
Can I get some relationship counseling?
Thank you SO MUCH!!!