Hey guys,
I am trying to pull a value from the most recent record and use it in a control in the form, so it can be used for a calculation. I highlighted the fields that I am talking about. The top grid is a subform based of the master table, and the bottom boxes are all unbound. VBA is used to push the values to a new record.

Here is the DLookUp code that I am trying to use
Code:
=DLookUp("Draw","TABLE_PayrollData","PPE = " & DateAdd("d",-14,[Forms]![MainMenu]![search ppe]) And "Employee = " & [SelectEmp])
[Forms]![MainMenu]![search ppe] is on the main switchboard, and populates the locked date field right below "Store 08" on the bottom left.
I want to pull the Draw field from TABLE_PayrollData where PPE (pay period ending date) is the most recent one before the selected from [Forms]![MainMenu]![search ppe] and since all employees are in the same table, I need the employee chosen in the drop down to match the one in the record I am grabbing.
Thanks guys!