S
Sara
Hello,
I have created a form that is essentially a profile of each employee's
information. Currently the form is pulling the job code and the job title
from what is entered in the table (Employees). My question is, whenever I
have to enter a new employee or change a current employee's job code, I have
to look up the corresponding job title to manually enter it. What I would
like to be able to do is enter the job code and have the job title populate
from a table I have (Job Codes) which has all job codes and their
corresponding job titles (I have a relationship between table Job Codes and
table Employees through the primary key in Job Codes (Job Code) and the Job
Code field in table Employees - a One-to-Many Relationship). When it pulls
the job title, I would like it to enter the information into the "Employees"
table. Can this be done? I've tried to use DLookUp but it always returns
"Error#". I tried the following DLookUp formulas:
=DLookUp("[Job Title]","[Job Codes]","[Job Code]=" &[Forms]![Employee
Management]![Job Code])
=DLookUp(""[Job Title]","[Job Codes]","[Job Code]="
&[Forms]![Employees]![Job Code])
There's somewhere around 400 Job Codes and Titles so it's very time
consuming to have to manually look up titles. Thanks in advance for your
help!
-Sara
I have created a form that is essentially a profile of each employee's
information. Currently the form is pulling the job code and the job title
from what is entered in the table (Employees). My question is, whenever I
have to enter a new employee or change a current employee's job code, I have
to look up the corresponding job title to manually enter it. What I would
like to be able to do is enter the job code and have the job title populate
from a table I have (Job Codes) which has all job codes and their
corresponding job titles (I have a relationship between table Job Codes and
table Employees through the primary key in Job Codes (Job Code) and the Job
Code field in table Employees - a One-to-Many Relationship). When it pulls
the job title, I would like it to enter the information into the "Employees"
table. Can this be done? I've tried to use DLookUp but it always returns
"Error#". I tried the following DLookUp formulas:
=DLookUp("[Job Title]","[Job Codes]","[Job Code]=" &[Forms]![Employee
Management]![Job Code])
=DLookUp(""[Job Title]","[Job Codes]","[Job Code]="
&[Forms]![Employees]![Job Code])
There's somewhere around 400 Job Codes and Titles so it's very time
consuming to have to manually look up titles. Thanks in advance for your
help!
-Sara