M
Matt
In a subform in datasheet view, I want a text box to return a value based
upon a previous selection in a combo box. I am getting a invalid syntax
error with the following information in the control source property of the
text box
=DLookup("WorkCode",[Work Codes]",[WorkCodeID]=" Forms![Time Cards
Subform]!WorkcodeID)
where the field, WorkCode, is the desired result from the table, Work Codes,
with the criteria being that the primary key (WorkCodeID) of the field
"WorkCode" is the same as that selected in the current subform.
It seems like a straightforward issue, but am getting a bit lost in syntax.
Hope the issue is understandable, and thank you for any likely solutions.
upon a previous selection in a combo box. I am getting a invalid syntax
error with the following information in the control source property of the
text box
=DLookup("WorkCode",[Work Codes]",[WorkCodeID]=" Forms![Time Cards
Subform]!WorkcodeID)
where the field, WorkCode, is the desired result from the table, Work Codes,
with the criteria being that the primary key (WorkCodeID) of the field
"WorkCode" is the same as that selected in the current subform.
It seems like a straightforward issue, but am getting a bit lost in syntax.
Hope the issue is understandable, and thank you for any likely solutions.