Relating numbers to names in a table or query
I think this problem is easily fixed, but I can't figure out how to do it.
Very briefly, my database is used to help people repair the machines in a factory. The main purpose is to print reports that will tell the technicians which machines need fixing and what's wrong with them. There are hundreds of machines, so they're divided into categories. I have a pair of combo-boxes (the second dependent on the first) set up. The second, dependent one captures the machine type (which was selected in the first combo-box), the machine name, and an ID number for the machine. The bound column is the one with the machine ID number. So the table it's bound to saves only the ID number, not the machine name. (I have it set up like this only because I followed an example I found online. I've tried to set it up without using the ID number at all, but I can't get the dependent combo-box to work any other way.)
Here's the problem: in the report I need the machine name to show up, not the maching ID number. The ID numbers are just randomly assigned, and the technicians don't know which machines they refer to. So when the report is generated, it needs to say what the name of the machine is, not the ID number. Do I need to set up a table that identifies the ID number with the name? Can I do this in the query?
Any help would be appreciated.
I think this problem is easily fixed, but I can't figure out how to do it.
Very briefly, my database is used to help people repair the machines in a factory. The main purpose is to print reports that will tell the technicians which machines need fixing and what's wrong with them. There are hundreds of machines, so they're divided into categories. I have a pair of combo-boxes (the second dependent on the first) set up. The second, dependent one captures the machine type (which was selected in the first combo-box), the machine name, and an ID number for the machine. The bound column is the one with the machine ID number. So the table it's bound to saves only the ID number, not the machine name. (I have it set up like this only because I followed an example I found online. I've tried to set it up without using the ID number at all, but I can't get the dependent combo-box to work any other way.)
Here's the problem: in the report I need the machine name to show up, not the maching ID number. The ID numbers are just randomly assigned, and the technicians don't know which machines they refer to. So when the report is generated, it needs to say what the name of the machine is, not the ID number. Do I need to set up a table that identifies the ID number with the name? Can I do this in the query?
Any help would be appreciated.
Last edited: