I have a table where each record is a Job Name and its associated data -- Job Number, Start Date, etc. E.g.:
JobNum JobName StartDate ...
------ ------- -------- ...
1123 Smith 1/1/2001 ...
1124 Jones 2/1/2001 ...
1125 Lascarro 3/1/2001 ...
I have a second table that is a Time Card. E.g.:
JobNum JobName WorkDate Hours
------ ------- -------- ------
1124 Jones 6/8/2001 11.5
The Time Card table references JobName in the Jobs table. What I'd like to do is when I select JobName from a combo box I want the JobNum field to be populated automatically. What is the best way to do this? I thought that writing a Module that fired everytime JobName changed that set JobNum was the way to go, but I couldn't figure out how to set JobNum to the correct value. The closest I got was getting the Record Number in the Jobs table, but I don't see how to get the JobNum associated with that record. Can someone clue me in?
Thanks!
Rich
JobNum JobName StartDate ...
------ ------- -------- ...
1123 Smith 1/1/2001 ...
1124 Jones 2/1/2001 ...
1125 Lascarro 3/1/2001 ...
I have a second table that is a Time Card. E.g.:
JobNum JobName WorkDate Hours
------ ------- -------- ------
1124 Jones 6/8/2001 11.5
The Time Card table references JobName in the Jobs table. What I'd like to do is when I select JobName from a combo box I want the JobNum field to be populated automatically. What is the best way to do this? I thought that writing a Module that fired everytime JobName changed that set JobNum was the way to go, but I couldn't figure out how to set JobNum to the correct value. The closest I got was getting the Record Number in the Jobs table, but I don't see how to get the JobNum associated with that record. Can someone clue me in?
Thanks!
Rich