chanman525
IS-IT--Management
Hey everyone. I just need a little help using dlookup. I've tried what seems to be 100 different combinations and can't seem to get it to work. Here's the scenario...
I have a table called emp.
Field2 is the employee name
Field5 is the employee id.
I want to be able to type in the employee id into the txtempid text box on the form, and display the name in the txtemployee text box.
Right now I have an event procedure set up on the after update option of the txtempid text box. My dlookup string is the following:
dlookup ("[Field5]", "[Emp]", "[Field2]=txtempid")
The debugger says it's expecting an = at the end. I'm at a loss on this one. Can anyone provide some insight?
I have a table called emp.
Field2 is the employee name
Field5 is the employee id.
I want to be able to type in the employee id into the txtempid text box on the form, and display the name in the txtemployee text box.
Right now I have an event procedure set up on the after update option of the txtempid text box. My dlookup string is the following:
dlookup ("[Field5]", "[Emp]", "[Field2]=txtempid")
The debugger says it's expecting an = at the end. I'm at a loss on this one. Can anyone provide some insight?