Hello, can someone please shed some light on something for me? I am having a lot of trouble understanding the workings of a particular lookup field in the template "Sales pipeling" (downloaded from Microsoft Office online (business), when creating a new db in Access 2007).
In the "Opportunities" table there is a column called "Customer" which has a lookup row source defined as "SELECT [Customers Extended].ID, [Customers Extended].[Contact Name], [Customers Extended].Company FROM [Customers Extended] ORDER BY [Customers Extended].[Contact Name];" and is bound to column 1. The "Customer" column also has a n:1 relationship to "ID" in the "Customers" table.
The thing that I can't understand is that even though the datatype for the "Customer" column (question: would you call this a column or a field?) is Number (which makes sence becasue it has a relationship with the "ID" column in the "Customers" table) it displays the "Contact Name" (which is the second column in the lookup combo box) from the "Customers Extended" query. Can someone please tell me why this occurs? The bound column for "Customer" is "1" which is "ID" (as far as I am aware) so why does "Contact Name" display?
Thanks for taking the time to read this long question. I have been trying to work it out for the last few hours and now my head is hurting :/
In the "Opportunities" table there is a column called "Customer" which has a lookup row source defined as "SELECT [Customers Extended].ID, [Customers Extended].[Contact Name], [Customers Extended].Company FROM [Customers Extended] ORDER BY [Customers Extended].[Contact Name];" and is bound to column 1. The "Customer" column also has a n:1 relationship to "ID" in the "Customers" table.
The thing that I can't understand is that even though the datatype for the "Customer" column (question: would you call this a column or a field?) is Number (which makes sence becasue it has a relationship with the "ID" column in the "Customers" table) it displays the "Contact Name" (which is the second column in the lookup combo box) from the "Customers Extended" query. Can someone please tell me why this occurs? The bound column for "Customer" is "1" which is "ID" (as far as I am aware) so why does "Contact Name" display?
Thanks for taking the time to read this long question. I have been trying to work it out for the last few hours and now my head is hurting :/