C
Chris
I have a table named Employees that has fields LastName,
FirstName and Email.
Using a query, I have joined the LastName and FirstName
as
mName = Me.txtLast & ", " & Me.txtFore.
The value of mName is then stored in the field Name in a
table called Assignments. It appears, for example,
as "Jet, Joan".
In a form called EmployeeAssignments, I show the value of
Name from the Assignments table.
On the form, I want to display (not store) the Email
address for the person. However, I can't figure out the
correct syntax for the DLookup command, since the value
of Name in the EmployeeAssignments table is differs from
the way it is stored in Employees. (Obviously, the value
of Email will change as the user moves from one record on
the form to another.)
Can anyone educate me on this?
FirstName and Email.
Using a query, I have joined the LastName and FirstName
as
mName = Me.txtLast & ", " & Me.txtFore.
The value of mName is then stored in the field Name in a
table called Assignments. It appears, for example,
as "Jet, Joan".
In a form called EmployeeAssignments, I show the value of
Name from the Assignments table.
On the form, I want to display (not store) the Email
address for the person. However, I can't figure out the
correct syntax for the DLookup command, since the value
of Name in the EmployeeAssignments table is differs from
the way it is stored in Employees. (Obviously, the value
of Email will change as the user moves from one record on
the form to another.)
Can anyone educate me on this?