![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Will be grateful for any help I want to show a 3 column table of Manufacturers - ID Manufacturer ParentName When the Manufacturer has a Parent/Holding company (which will already in the table) I need to show that 'ParentName' that in a 3rd column. Note I was just trying to avoid having a separate table for 'Parent companies' My table is called tblMakers with fields ID (auto), parentID (long), and Maker (text). If the Manufacturer does not have a Parent then parentID can be either 0 or the same as ID. If intended to to display the 'Parent name' in 3rd column by detecting if parentID>0 AND parentID<>ID eg, ID Name Parent (parentID) --------------------------- 1 BP (0 or 1) 1 Compaq HP ( is 3) 2 Delta (0 or 2) 3 HP (0 or 3) 4 Smiths (0 or 4) Any assistance will be really appreciated. Kenny --- news://freenews.netfront.net/ - complaints: news (AT) netfront (DOT) net --- |
#3
| |||
| |||
|
|
Ken Ashton <kashton (AT) terra (DOT) es> wrote in news:61gqc6l47hk655640a54kevhj72enlt1f8 (AT) 4ax (DOT) com: Will be grateful for any help I want to show a 3 column table of Manufacturers - ID Manufacturer ParentName When the Manufacturer has a Parent/Holding company (which will already in the table) I need to show that 'ParentName' that in a 3rd column. Note I was just trying to avoid having a separate table for 'Parent companies' My table is called tblMakers with fields ID (auto), parentID (long), and Maker (text). If the Manufacturer does not have a Parent then parentID can be either 0 or the same as ID. If intended to to display the 'Parent name' in 3rd column by detecting if parentID>0 AND parentID<>ID eg, ID Name Parent (parentID) --------------------------- 1 BP (0 or 1) 1 Compaq HP ( is 3) 2 Delta (0 or 2) 3 HP (0 or 3) 4 Smiths (0 or 4) ....Next drag and drop the left table's parentID onto the right table's ID field. Double-click on the line that appeared and choose the second option. Now just double click on the fields you want in the query, save it ant test it. |
![]() |
| Thread Tools | |
| Display Modes | |
| |