Trouble with Dlookup Calculated Field in Query

ozop102

New Member
Joined
Apr 18, 2019
Messages
4
Hello All,

I am having an issue using calculated fields in a query with Dlookup.

I have a query that needs to pull data from another table based on another field in the same query.

Exp1 in query:

SCOD Due: DLookUp("[SCOD Date]","SCODS","[Rank] = " & [CAL Table]![Rank])

I want the SCOD Date from the SCODS table. On the SCODS table, the dates are in DD Mmm format separated by rank.

Example of what I am trying to accomplish.

SCODS Table:
Rank SCOD Date
SSG 31 MAY

ACA Listing Query ([CAL Table]):
Rank Exp1
SSG 31 May

Then

Exp2
Exp1 & Year(Date())

31 May 2019

All this so that I can calculate due dates based on the final date in Exp2

Running this query currently leaves each field with #Error .

Any help or guidance would be greatly appreciated!
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Forum statistics

Threads
1,214,833
Messages
6,121,858
Members
449,052
Latest member
Fuddy_Duddy

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top