So for so many questions, this is my last post. (I hope ).
I have a customer table, which holds there information, then I have an orders table. The orders table has a "foreign" key "CustomerID" which is a one-to-many relationship to the primary key in the customer table. Now on my "order" form, the record source being the orders table. I have a combo box filled with the company names. When I select a company, the number (value) the combobox is, is the primary key for the customer table. So I store this found ID in the foreign key in the orders table.
What exactly is the point of the relationship even existing? I currently use "DLookup()" to pull information from the customer table to display on the order form. (Since the record source is not the costumer table)
Code:
Result = DLookup("[Company]","tblCostumer","[ID]=" & Me.CustomerID)
I feel that I might be doing this wrong, since even if I didn't have that relationship setup, I can still do what I'm doing.
Sorry for the long explanation.. I have a orders table, which has a relationship to a specific customer. When I'm entering a "new order" how to I "properly" pull information from the costumer table, that the primary id equals the CustomerID. I figured this is where relationships plays a role.