I have a table tbl_Folder with the following fields
KEY_Folder (autonumber)
tx_Name (text,50)
ID_ParentFolder (long)
The tx_Name field has the caption "Name of Folder"
Each record CAN be related back into the same table, linking a folder to its parent folder through ID_ParentFolder .
I have a combobox in which the user is meant to make a selection, of where to place a new document. Since sometimes folders will have similar names but different parent folders, I need to include the parent folder name in the combobox dropdown.
Example: The Folder "ATC" is located in the folder "PD-Preliminary Design"
Another folder also named ATC is located in the folder "DD-Detailed Design"
So in my dropdown I would like it to look:
That part is not a problem and I have it done.
My problem is that I want a header at the top of each column in the combobox, reading "Folder | Parent Folder" and no matter what I try the only header I can get comes from the fields Caption property "Name of Folder | Name of Folder", and I dont seem to be able to override this.
My combobox Rowsource is:
How can I specify the column headings I wish for my combobox?
KEY_Folder (autonumber)
tx_Name (text,50)
ID_ParentFolder (long)
The tx_Name field has the caption "Name of Folder"
Each record CAN be related back into the same table, linking a folder to its parent folder through ID_ParentFolder .
I have a combobox in which the user is meant to make a selection, of where to place a new document. Since sometimes folders will have similar names but different parent folders, I need to include the parent folder name in the combobox dropdown.
Example: The Folder "ATC" is located in the folder "PD-Preliminary Design"
Another folder also named ATC is located in the folder "DD-Detailed Design"
So in my dropdown I would like it to look:
Code:
ATC | PD-Preliminary Design ATC | DD-Detailed Design
My problem is that I want a header at the top of each column in the combobox, reading "Folder | Parent Folder" and no matter what I try the only header I can get comes from the fields Caption property "Name of Folder | Name of Folder", and I dont seem to be able to override this.
My combobox Rowsource is:
Code:
SELECT tbl_Folder.KEY_Folder, tbl_Folder.tx_Name AS Folder, aTbl_ParentFolder.tx_Name AS [Parent Folder], FROM tbl_Folder INNER JOIN tbl_Folder AS aTbl_ParentFolder ON tbl_Folder.ID_ParentFolder= aTbl_ParentFolder.KEY_Folder;
Comment