I have a database that's tracking funds owed by customers and there is some erratic behavior occurring. To put this in a sort of real-world scenario, imagine I'm paying bills on behalf of people and those people, in turn, owe me money. So, I might list John Doe owes me for Netflix, Comcast, Amazon, etc. So right now there is a table called "Collections" that contains the list of names of the people that owe money (John Doe in my example). In that table, the customer name is the only field and it's also the primary key. It has a one-to-many relationship set to a Customer Name field in a table called "Company". That table lists all the bills (Netflix, Comcast, etc.).
Everything works until I create a form on the "Collections" table and try to link the "Company" information. I have it properly tied with the Master and Child fields, but every time I try to add a new bill in the subform, Access is populating the foreign key field with the words "Customer Name". I thought something must have been tied incorrectly since it's putting the words "Customer Name" in the Customer Name field, but when I re-created the form, it's now populating the word "Collections" in the Customer Name field. I've double-checked the Collections table just to make sure records for "Customer Name" and "Collections" don't exist and they truly don't.
I've tried setting up the subform both with a form in datasheet view and also directly to the "Company" table and neither work. If anyone has any guesses I'm at a complete loss. If anyone needs to see the db, I can provide a copy once I remove the information from it.
Also, just a note. I've posted in these forums before and I get a lot of responses about poorly constructed databases and poor naming conventions. I'd like everyone to know I agree. Unfortunately, I work with databases that were constructed by people not very familiar with the product. So I'm attaching a copy of the database below, but please understand I'm already in agreement with you.
Thanks!
Everything works until I create a form on the "Collections" table and try to link the "Company" information. I have it properly tied with the Master and Child fields, but every time I try to add a new bill in the subform, Access is populating the foreign key field with the words "Customer Name". I thought something must have been tied incorrectly since it's putting the words "Customer Name" in the Customer Name field, but when I re-created the form, it's now populating the word "Collections" in the Customer Name field. I've double-checked the Collections table just to make sure records for "Customer Name" and "Collections" don't exist and they truly don't.
I've tried setting up the subform both with a form in datasheet view and also directly to the "Company" table and neither work. If anyone has any guesses I'm at a complete loss. If anyone needs to see the db, I can provide a copy once I remove the information from it.
Also, just a note. I've posted in these forums before and I get a lot of responses about poorly constructed databases and poor naming conventions. I'd like everyone to know I agree. Unfortunately, I work with databases that were constructed by people not very familiar with the product. So I'm attaching a copy of the database below, but please understand I'm already in agreement with you.
Thanks!