P
Ptero
I have a query which uses dlookup to looks up a value for one of the fields
in another table if it would otherwise be null. It works fine for displaying
the data, but when I try to sort or filter on the dlookup field I get the
following error:
The expression you entered as a query parameter produced this error: 'The
object doesn't contain the automation object 'Int."
For some reason it repeats this message twice before complying with the
filter or sort.
The query is:
SELECT T_Seg_OBM.SO_OBM_Code,
IIf(IsNull([SG_Most_Popular_Name]),DLookUp("[SA_Account_Name]","T_Details_Account","[SA_Account_Number]
= " & Left([SO_OBM_Code],Len([SO_OBM_Code])-5)),[SG_Most_Popular_Name]) AS
[Most Popular Name]
FROM T_Seg_OBM LEFT JOIN T_Details_GroupID ON T_Seg_OBM.SO_OBM_Code =
T_Details_GroupID.SG_OBM_Code;
The lookup can fail and produce a null result if the value being looked up
is not present.
If anyone has any suggestions it will be much appreciated.
Many thanks
Ptero
in another table if it would otherwise be null. It works fine for displaying
the data, but when I try to sort or filter on the dlookup field I get the
following error:
The expression you entered as a query parameter produced this error: 'The
object doesn't contain the automation object 'Int."
For some reason it repeats this message twice before complying with the
filter or sort.
The query is:
SELECT T_Seg_OBM.SO_OBM_Code,
IIf(IsNull([SG_Most_Popular_Name]),DLookUp("[SA_Account_Name]","T_Details_Account","[SA_Account_Number]
= " & Left([SO_OBM_Code],Len([SO_OBM_Code])-5)),[SG_Most_Popular_Name]) AS
[Most Popular Name]
FROM T_Seg_OBM LEFT JOIN T_Details_GroupID ON T_Seg_OBM.SO_OBM_Code =
T_Details_GroupID.SG_OBM_Code;
The lookup can fail and produce a null result if the value being looked up
is not present.
If anyone has any suggestions it will be much appreciated.
Many thanks
Ptero