D
dab1477
I have a subform titled NewPartsSubForm. Within this form, I have a combo box
labled as Rtg_oper_num. I am able to choose from a listing of routings within
the box (I choose 100, 120, 140, 32156 etc from a listing). I want to
populate a Description filed within this same subform based upon the entry I
choose in the Rtg_oper_num field. I have a table call Operations, where I
have the operation number in one column and the operation descripton in an
adjacent column. I am trying to lookup the Rtg_oper_num entry on the subform;
match it to the Operation Number in the Operations table, and return the
Operation Description from the Operations table to the Description field on
the subform. At this point I have the following expression coded for the
Control Source property of the Description Field of the subform;
=DLookUp("[Oper_Desc]","[operations]","[rtg_oper_num]=Forms![newpartsubform]![rtg_oper_num]")
Is this the correct use of Dlookup? At this point, my Description Field
shows up blank - no error, nothing. I used expression instead of VBA coding
because I am very elementary on the coding side of thinks, but would be
willing to explore if there is a better option than Dlookup function.
Thanks in advance for the assist.
labled as Rtg_oper_num. I am able to choose from a listing of routings within
the box (I choose 100, 120, 140, 32156 etc from a listing). I want to
populate a Description filed within this same subform based upon the entry I
choose in the Rtg_oper_num field. I have a table call Operations, where I
have the operation number in one column and the operation descripton in an
adjacent column. I am trying to lookup the Rtg_oper_num entry on the subform;
match it to the Operation Number in the Operations table, and return the
Operation Description from the Operations table to the Description field on
the subform. At this point I have the following expression coded for the
Control Source property of the Description Field of the subform;
=DLookUp("[Oper_Desc]","[operations]","[rtg_oper_num]=Forms![newpartsubform]![rtg_oper_num]")
Is this the correct use of Dlookup? At this point, my Description Field
shows up blank - no error, nothing. I used expression instead of VBA coding
because I am very elementary on the coding side of thinks, but would be
willing to explore if there is a better option than Dlookup function.
Thanks in advance for the assist.