T
Thrava
I can't figure this out and its driving me nuts.
in the same select query that I'm trying to used the
DLookup Function, I also have a caculated field called
"Diff_M_ID".
I have a table created that I want to use as a lookup
table. The table is called "Tbl_Lookup_MYr_BucketCode".
No matter what I do, the Dlookup below gives me #Error for
that column when the Query is run.
LookupTest: DLookUp("[Translate into
month]","[Tbl_Lookup_MYr_BucketCode]","[Tbl_Lookup_MYr_Buck
etCode].[Calc Diff Month ID]='"&[Diff_M_ID]&"'")
If I replace the last part of the function so the criteria
is based a number (to test the function) it works fine as
seen below.
LookupTest: DLookUp("[Translate into
month]","[Tbl_Lookup_MYr_BucketCode]","[Tbl_Lookup_MYr_Buck
etCode].[Calc Diff Month ID]=-3")
Can anyone help with this please? why when I use the
field [Diff_M_ID] instead of a number, like -3, it doesn't
work?
thanks
in the same select query that I'm trying to used the
DLookup Function, I also have a caculated field called
"Diff_M_ID".
I have a table created that I want to use as a lookup
table. The table is called "Tbl_Lookup_MYr_BucketCode".
No matter what I do, the Dlookup below gives me #Error for
that column when the Query is run.
LookupTest: DLookUp("[Translate into
month]","[Tbl_Lookup_MYr_BucketCode]","[Tbl_Lookup_MYr_Buck
etCode].[Calc Diff Month ID]='"&[Diff_M_ID]&"'")
If I replace the last part of the function so the criteria
is based a number (to test the function) it works fine as
seen below.
LookupTest: DLookUp("[Translate into
month]","[Tbl_Lookup_MYr_BucketCode]","[Tbl_Lookup_MYr_Buck
etCode].[Calc Diff Month ID]=-3")
Can anyone help with this please? why when I use the
field [Diff_M_ID] instead of a number, like -3, it doesn't
work?
thanks