S
SeanMatyas
I appreciate any help that is available, and I thank you in advance
for your attention...as you will be able to tell, im really new at all
of this.
Alright, I am in the process of making a database from scratch, and I
have my tables all set up how I would like them, and i am making forms
now for record entry.
I have one main table: Company Information (self explanatory, primary
key is company name. I know, i know, it should be an ID number)
I have a form where users enter information on a company, and can call
up basic information on a company. I added a button that, when
pressed, calls up a form that allows the user to enter information
regarding fee payments (we charge an annual fee, and we record the
date and amount of the fee on the aptly titled "fee" table.) The
primary key on this table is the company name as well.
Now, i thought that when i create a 1 to 1 relationship between the
tables, and select "enforce referential integrity", and "cascade
update related fields", that when i create a "company" record on my
main form and select my subform button, it would update the "company"
record on my fee table. However, it does not, and when i put in the
fee information i get the error message "index or primary key cannot
contain a null value".
This leads me to my question: is there a way that I can get this to
work as I envision it working? Is it possible to update the "company"
record on my fees table when I add my "company" record on my Company
Information table?
Any help is greatly appreciated....
Thank you
Sean
for your attention...as you will be able to tell, im really new at all
of this.
Alright, I am in the process of making a database from scratch, and I
have my tables all set up how I would like them, and i am making forms
now for record entry.
I have one main table: Company Information (self explanatory, primary
key is company name. I know, i know, it should be an ID number)
I have a form where users enter information on a company, and can call
up basic information on a company. I added a button that, when
pressed, calls up a form that allows the user to enter information
regarding fee payments (we charge an annual fee, and we record the
date and amount of the fee on the aptly titled "fee" table.) The
primary key on this table is the company name as well.
Now, i thought that when i create a 1 to 1 relationship between the
tables, and select "enforce referential integrity", and "cascade
update related fields", that when i create a "company" record on my
main form and select my subform button, it would update the "company"
record on my fee table. However, it does not, and when i put in the
fee information i get the error message "index or primary key cannot
contain a null value".
This leads me to my question: is there a way that I can get this to
work as I envision it working? Is it possible to update the "company"
record on my fees table when I add my "company" record on my Company
Information table?
Any help is greatly appreciated....
Thank you
Sean