I have a table that has three columns, Beg_Date, End_Date, and Rpt_Month. I then have another table that has a Cal_Date. I want to create a field in the new table that if the Cal_Date is Between the Beg_Date and End_Date that it put out Rpt_Month.
SELECT Table_2.Cal_Date, Table_1.Rpt_Month
FROM Table_1, Table_2
WHERE (((Table_2.Cal_Date)>=[Table_1].[Beg_Date] And (Table_2.Cal_Date)<=[Table_1].[End_Date]));
I am sure I understand what you are saying here.It says cannot display because Total Line has where so I could put formula in. I need the field to have a name and to be displayed.
SELECT [EUR_COMP].Cal_Date, [FYC_Calendar].Rpt_Month
FROM [FYC_Calendar], [EUR_COMP]
WHERE ((([EUR_COMP].Cal_Date)>=[FYC_Calendar].[Beg_Date] And ([EUR_COMP].Cal_Date)<=[FYC_Calendar].[End_Date]));