Date Condition

noletwin1

New Member
Joined
May 17, 2013
Messages
25
I have two tables I want to combine:
tbl_FYC_2016_Initial
tbl_FYC_Date

In tbl_FYC_2016_Initial it has a field, Cal_DT that will fall between or is equal to two fields fields in tbl_FYC_Date.
Beg_Date is field one that the Cal_DT should be greater than
End_Date is the field that Cal_DT should be less than
Rpt_Date is the field that I want to be displayed if a Cal_DT is between the dates

There are other fields that I want to combine from tbl_FYC_2016_Initial but will worry about that after I can get the correct date be there.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
SELECT tbl_FYC_2016_Initial.CAL_DT, DLookUp("[Rpt_Date]","tbl_FYC_Date",[tbl_FYC_2016_Initial]![CAL_DT]>=[Beg_Date] And [tbl_FYC_2016_Initial]![CAL_DT]<=[End_Date]) AS Rptg_Mo_DT
FROM tbl_FYC_Date, tbl_FYC_2016_Initial;

I have tried this, but it isn't working.
 
Upvote 0

Forum statistics

Threads
1,221,771
Messages
6,161,847
Members
451,723
Latest member
Rachetsely

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