0

I am Working with a form with a combo box (LaborType) and a text box (LaborCost1) I have the following code on the after update event of the combo box and it returns the same value no matter the criteria.

[LaborCost1] = DLookup("LaborCost", "LaborTypesAndCost", LaborType = Me.LaborType)
Kostas K.
  • 8,293
  • 2
  • 22
  • 28
Jesse
  • 1
  • 1

1 Answers1

0

If LaborType is numeric:

DLookup("LaborCost", "LaborTypesAndCost", "LaborType = " & Me.LaborType)

If LaborType is text:

DLookup("LaborCost", "LaborTypesAndCost", "LaborType = '" & Me.LaborType & "'")
Kostas K.
  • 8,293
  • 2
  • 22
  • 28