I am embarrassed to say I cannot make this work. Recently upgraded to
Access 2003, but do not know if that part of problem (AKA 'syntax
change'). Would someone be kind enough to lead me by the hand?
Table name: LUtblProvider
Table field names: provPKID, name, company, type, phone
Table name: tblRef
Table field names: refPKID, prov, event, src
Form: frmRef BOUND TO: qryRef and DISPLAYS query
results appropriately based on criteria specified. Value of
tblRef.prov **is** displayed on frmRef in textbox called "txtProv"
Problem:
Another textbox called "txtType" on frmRef is intended to display the
TYPE of provider. Idea was to use DLOOKUP to display PROV TYPE
corresponding to PROV NAME by interrogating LUtblProvider.
Following code in ControlSource of txtType:
=DLookUp("[type]","LUtblProvide r","[name]= " & [Forms]![frmRef]!
[txtprov])
Receiving this error:
Syntax error (missing operator) in query expression '[name]= Jim
Adams'.
Note: Name Jim Adams is displayed in txtProv so Access is
recognizing the PROV NAME.
I will NOT admit to how long I have beat my forehead on the desk about
this!
Your help would be very much appreciated.
gary b
Access 2003, but do not know if that part of problem (AKA 'syntax
change'). Would someone be kind enough to lead me by the hand?
Table name: LUtblProvider
Table field names: provPKID, name, company, type, phone
Table name: tblRef
Table field names: refPKID, prov, event, src
Form: frmRef BOUND TO: qryRef and DISPLAYS query
results appropriately based on criteria specified. Value of
tblRef.prov **is** displayed on frmRef in textbox called "txtProv"
Problem:
Another textbox called "txtType" on frmRef is intended to display the
TYPE of provider. Idea was to use DLOOKUP to display PROV TYPE
corresponding to PROV NAME by interrogating LUtblProvider.
Following code in ControlSource of txtType:
=DLookUp("[type]","LUtblProvide r","[name]= " & [Forms]![frmRef]!
[txtprov])
Receiving this error:
Syntax error (missing operator) in query expression '[name]= Jim
Adams'.
Note: Name Jim Adams is displayed in txtProv so Access is
recognizing the PROV NAME.
I will NOT admit to how long I have beat my forehead on the desk about
this!
Your help would be very much appreciated.
gary b
Comment