I have two tables in my database. One with customer information and one with the customers address information.
I have two seperate forms. The tables are related by a field in both called RCustomerID. I'm not displaying the ID on either form. I need to know how to reference this field so that when I have customer 4453 open and I open the Address form from the form, it opens the address for Customer 4453 and not customer 1.
I know I'm going to have to use the Openform method of the Docmd function, but I just don't know how to structure the query. I'm thinking something like:
SELECT fields FROM tables WHERE ??how do I say "customerid in table1 = customerid in table2"??
I need to be able to update this information.
Thanks in advance!
Chris
I have two seperate forms. The tables are related by a field in both called RCustomerID. I'm not displaying the ID on either form. I need to know how to reference this field so that when I have customer 4453 open and I open the Address form from the form, it opens the address for Customer 4453 and not customer 1.
I know I'm going to have to use the Openform method of the Docmd function, but I just don't know how to structure the query. I'm thinking something like:
SELECT fields FROM tables WHERE ??how do I say "customerid in table1 = customerid in table2"??
I need to be able to update this information.
Thanks in advance!
Chris