A
alhotch
I have two tables - tblEmployees and tblActivities. The tblEmployees table
has three fields - fldEmployeeID (number type); fldLastName(text type); and
fldFirstName(text type). The tblActivities table has several fileds but the
one I want to reference is fldPerson(number type). The fldPerson value is a
number which corresponds to the fldEmployeeID in the tblEmployees table. I
have created a query called qryPeople which, using SQL looks like this:
SELECT tblActivities.fldPerson, tblEmployees.fldEmployeeID,
tblEmployees.FirstName, tblEmployees.LastName
FROM tblActivities, fldPerson
WHERE (((tblEmployees.fldEmployeeID)=[tblActivities.fldPerson]));
How do I write a DLookUp expression for the "Control Source" field in a tex
box we'll call txtPersonName ? The "Record Source" for the form is a
different table from the above mentioned tables.
=DLookUp("[LastName]","[qryPeople]") yields only the first record of this
multi-record query.
has three fields - fldEmployeeID (number type); fldLastName(text type); and
fldFirstName(text type). The tblActivities table has several fileds but the
one I want to reference is fldPerson(number type). The fldPerson value is a
number which corresponds to the fldEmployeeID in the tblEmployees table. I
have created a query called qryPeople which, using SQL looks like this:
SELECT tblActivities.fldPerson, tblEmployees.fldEmployeeID,
tblEmployees.FirstName, tblEmployees.LastName
FROM tblActivities, fldPerson
WHERE (((tblEmployees.fldEmployeeID)=[tblActivities.fldPerson]));
How do I write a DLookUp expression for the "Control Source" field in a tex
box we'll call txtPersonName ? The "Record Source" for the form is a
different table from the above mentioned tables.
=DLookUp("[LastName]","[qryPeople]") yields only the first record of this
multi-record query.