G
Guest
I have a form (TIME SHEET ENTRY) that I can enter employee name, where he
worked, the hours he worked and the week.
The employee name is a combo box. The name is looked up but the employee
number (which is text) is stored in the table.
I am trying to get Dlookup to automatically put in the hourly rate from the
EMPLOYEE table.
I have used CTRL G to check the following
=DLookUp("[HOURLY]","EMPLOYEE","[EmpNo] = '" & Forms![TIME SHEET
ENTRY]![NAME]& "'")
And this works fine until I try and put it on the form. I get a blank entry
in Hourly rate.
I am probably doing something very stupid!!! It's taken me so long to get
the formula to work and now I want to scream!!!
Please help me
Thanks
worked, the hours he worked and the week.
The employee name is a combo box. The name is looked up but the employee
number (which is text) is stored in the table.
I am trying to get Dlookup to automatically put in the hourly rate from the
EMPLOYEE table.
I have used CTRL G to check the following
=DLookUp("[HOURLY]","EMPLOYEE","[EmpNo] = '" & Forms![TIME SHEET
ENTRY]![NAME]& "'")
And this works fine until I try and put it on the form. I get a blank entry
in Hourly rate.
I am probably doing something very stupid!!! It's taken me so long to get
the formula to work and now I want to scream!!!
Please help me
Thanks