G
Guest
thank you for the info....I'm trying it and want to make sure I have this
correct:
The table name containing the data is 'employeedata'
The field in that table containing the id number is 'employeeidnumber'
The field in that table containing the name of the person is 'employeename'
The name of the text box on the form where the id number is typed in is
'mdidnumber'
The name of the text box where I want to put the looked(pardon the grammar)
up name is 'mdname'
So the expression placed in the Control Source of the 'mdname' text box
would be:
Dlookup("[employeeidnumber]","employeedata","[mdidnumber]"="&ME!mdidnumber &"
Just want to make sure because I can't get it to work and don't know if it's
a syntax issue or something else...
thanks very much
Chris
correct:
The table name containing the data is 'employeedata'
The field in that table containing the id number is 'employeeidnumber'
The field in that table containing the name of the person is 'employeename'
The name of the text box on the form where the id number is typed in is
'mdidnumber'
The name of the text box where I want to put the looked(pardon the grammar)
up name is 'mdname'
So the expression placed in the Control Source of the 'mdname' text box
would be:
Dlookup("[employeeidnumber]","employeedata","[mdidnumber]"="&ME!mdidnumber &"
Just want to make sure because I can't get it to work and don't know if it's
a syntax issue or something else...
thanks very much
Chris
[email protected] said:hi,
you might try dlookup. relatively simple
field table filed control on form
DLookup("[PNumber]","tbl","[EmpID] ='" & Me!txtEmpID & "'"
DLookup("[name]", "tbl", "[EmpID] ='" & Me!txtEmpID & "'"
you can use this as the control source for the name
control and the phone number control-----Original Message-----
Thanks for reading !
I have a table that contains name, phone number and id number. I have a
form that displays that data. What I want to do is have the user enter in
their ID number, then based on that the field for phone number and name would
populate in the appropriate text boxes.
For instance if the user typed 12345 in the employee ID text box, the
afterupdate event would trigger something to go look for that number in
tblemployees and upon finding it would populate the phone number and name in
the other text boxes.
I'm not using a combo box only because not every employee may be in it...but
can if it makes it easier.
Does anyone have a link or some advice for this please ?
thanks for reading this.
.