S
Santa-D
Hi all,
I'm running a query which generates a report for me on vehicles.
Within the report I have a field which consists of an account code
called [COSTCODE]
What I want to do is retrieve the Performance Centre from the
[COSTCODE] and do a lookup from the Chart of Accounts Table and obtain
the Full Description from the Performance Centre Table.
This is what I have done so far.
PCode: DLookUp("[PCDesc]","[Seg 3 - Perf
Centre]","[PCCode]=LEFT([COSTCODE],4)")
I've even tried creating a field called CCODE which specifically did
the LEFT([COSTCODE],4) but on both ocassions I obtained the following
error.
The expression you entered as a query parameter produced this error:
'Microsoft Office Access can't find the name 'COSTCODE' you entered in
the expression'
Can anyone tell me why this isn't working and how I get it to work
please?
I'm running a query which generates a report for me on vehicles.
Within the report I have a field which consists of an account code
called [COSTCODE]
What I want to do is retrieve the Performance Centre from the
[COSTCODE] and do a lookup from the Chart of Accounts Table and obtain
the Full Description from the Performance Centre Table.
This is what I have done so far.
PCode: DLookUp("[PCDesc]","[Seg 3 - Perf
Centre]","[PCCode]=LEFT([COSTCODE],4)")
I've even tried creating a field called CCODE which specifically did
the LEFT([COSTCODE],4) but on both ocassions I obtained the following
error.
The expression you entered as a query parameter produced this error:
'Microsoft Office Access can't find the name 'COSTCODE' you entered in
the expression'
Can anyone tell me why this isn't working and how I get it to work
please?