I have table called Companies with accompanying company id #.
1 Company C
2 Company X
etc.
The value that I store throughout the db is the number. I now am trying to write code that takes selected company and opens its related spreadsheet. The path name always begins:
C:/Files/Spreadsheets/
then the company name, exactly as stored in the table. so if the company ID was 2 I would want to open
C:/Files/Spreadsheets/Company X/file1.xls
How do I retrieve the company name, given the ID. I am writing this in VB using the Shell method and seem to be doing it correctly. I just need to extract the company name. Any sample code is much appreciated. Thank you as always,
Marco
1 Company C
2 Company X
etc.
The value that I store throughout the db is the number. I now am trying to write code that takes selected company and opens its related spreadsheet. The path name always begins:
C:/Files/Spreadsheets/
then the company name, exactly as stored in the table. so if the company ID was 2 I would want to open
C:/Files/Spreadsheets/Company X/file1.xls
How do I retrieve the company name, given the ID. I am writing this in VB using the Shell method and seem to be doing it correctly. I just need to extract the company name. Any sample code is much appreciated. Thank you as always,
Marco