This should not be difficult, but I can't figure out how to do it.
Very briefly, my database is meant to help technicians fix broken machines. There are hundreds of machines, so they're broken into groups. There are two tables in play here. The first has columns for Group name and an auto-generated Group ID number. The second table has columns for Group name, Group ID number, Machine name, and an auto-generated Machine ID number.
What I want it to do is the following. When I enter a new machine and select what group it's in, the table should automatically give it the correct Machine Group ID number, based on the first table I described. The tricky part is automating it. The reason is needs to be automated is that I'm having the user use a form when adding machines. He chooses a Group name and then types in the name of the new machine. (The number is important only because there's a combo-box I'm using on a different form which requires it.)
Thanks in advance for the help.
Very briefly, my database is meant to help technicians fix broken machines. There are hundreds of machines, so they're broken into groups. There are two tables in play here. The first has columns for Group name and an auto-generated Group ID number. The second table has columns for Group name, Group ID number, Machine name, and an auto-generated Machine ID number.
What I want it to do is the following. When I enter a new machine and select what group it's in, the table should automatically give it the correct Machine Group ID number, based on the first table I described. The tricky part is automating it. The reason is needs to be automated is that I'm having the user use a form when adding machines. He chooses a Group name and then types in the name of the new machine. (The number is important only because there's a combo-box I'm using on a different form which requires it.)
Thanks in advance for the help.