I am trying to get a text box on a form to auto-populate a dollar value based on the selection within the combo box on the form. I keep getting either #Name? or #Error no matter how I structure the control source code.
=DLookup("Base Pay", "GSPayT", "GSLevelandStepF=" & GSLevelandStepCombo)
This was my first try but it kept throwing #Name? and I am not sure why. I thought that maybe the problem was that the GSLevelandStepF field was in a different table from the other data so I tried the next code.
=DLookUp("Base Pay","GSPayT","[EmployeesT]![GSLevelandStepF]=" & [GSLevelandStepCombo])
It then was only throwing #Error. Probably because I used quotes with brackets, but I don't know how to structure this differently.
Lastly, I am hoping that the populated value can be added to the EmployeeT table when the form is submitted but I am not sure how to do that either.