S
Steve Stad
I am using a dcount to lookup the "Prod1_Mgr" in a table named
"tbl_Org-Div-Prod-Mgr" where the value in the 'Prod1combo' box on the form is
equal to the Product_Title in the lookup table "tbl_Org-Div-Prod-Mgr". The
look up table contains the fields "Prod_Title" and "Prod_Mgr_Pri". I want
to enter the value in Prod_Mgr_Pri fld in the look up table into the
Prod1_Mgr field on my form where the value in the Prod1combo box on the form
equals the "Product_Title" in the lookup form.
I am using the after update event of the Prod1combo box. Here is the code..
Private Sub Prod1combo_AfterUpdate()
Prod1_Mgr = DLookup("Prod1_Mgr", "tbl_Org-Div-Prod-Mgr", "Prod1combo = '" &
[PROD_TITLE] & "'")
End Sub
I am getting an error msg saying the DB can't find the field '|' referred to
in your expression. Do I have a syntax error?
fyi... the control source for the Prod1combo box is Prod1. Prod1combo is
the name of the combo box.
"tbl_Org-Div-Prod-Mgr" where the value in the 'Prod1combo' box on the form is
equal to the Product_Title in the lookup table "tbl_Org-Div-Prod-Mgr". The
look up table contains the fields "Prod_Title" and "Prod_Mgr_Pri". I want
to enter the value in Prod_Mgr_Pri fld in the look up table into the
Prod1_Mgr field on my form where the value in the Prod1combo box on the form
equals the "Product_Title" in the lookup form.
I am using the after update event of the Prod1combo box. Here is the code..
Private Sub Prod1combo_AfterUpdate()
Prod1_Mgr = DLookup("Prod1_Mgr", "tbl_Org-Div-Prod-Mgr", "Prod1combo = '" &
[PROD_TITLE] & "'")
End Sub
I am getting an error msg saying the DB can't find the field '|' referred to
in your expression. Do I have a syntax error?
fyi... the control source for the Prod1combo box is Prod1. Prod1combo is
the name of the combo box.