OrderBO.Cust_id -> CustomerBO.Cust_id
and
OrderBO.Prod_id ->ProductBO.Prod_id
As I navigate through each Order record, I want to be able to display the related Customer.Name and Product.Title.
I've been able to successfully set the OrderBO.ParentBusinessObject = "CustomerBO" in the property sheet, but do not know how to set another relation at the same time or how to do this in code. Any help would be much appreciated.
TIA,
Larry
We always prefix our table and column names with a unique three character prefix, e.g. PUNWeight, HPCWeight etc. Not only does it eliminate duplicates names in procs and views it makes code easier to 'read'. Being doing this for years in various database and highly recommend it.
FYI, another convention we use and find useful is XXX_PK, e.g. HPC_PUNID, for all foreign key relationships, where XXX is the standard column prefix for the table and PK is the Primary Key column name in the foreign key table. As you can see we always name our Primary Key values as the table prefix followed by "ID".
Cheers, Peter