I am working on a formula for a 401(k) report to send to our plan administrator. I need a formula to show which quarter they are eligible. This is the start of my formula:
if DateDiff("d",{HRRM.HireDate},{?EndPayPeriod}) < 30 then 'N'
else if DateDiff("d",{HRRM.HireDate},{?EndPayPeriod})>30 and ({@IBSH0162.IB_Employment_Status} = '06 ' or {@IBSH0162.IB_Employment_Status} = '30 ') then 'Y'
else if {HRRM.udOrigHireDate}> #1/1/1950# and ({@IBSH0162.IB_Employment_Status} = '06 ' or {@IBSH0162.IB_Employment_Status} = '30 ')
then 'Y' else if
{HRRM.TermDate}>#1/1/1950# then space(8)
Whenever the letter 'Y' is I would need the start of the quarter coming up. In this case 7/1/2013. Whereever the letter 'N' is I need the quarter they are eligible. In this case 10/1/2013. I have no idea how I would go about doing that.
if DateDiff("d",{HRRM.HireDate},{?EndPayPeriod}) < 30 then 'N'
else if DateDiff("d",{HRRM.HireDate},{?EndPayPeriod})>30 and ({@IBSH0162.IB_Employment_Status} = '06 ' or {@IBSH0162.IB_Employment_Status} = '30 ') then 'Y'
else if {HRRM.udOrigHireDate}> #1/1/1950# and ({@IBSH0162.IB_Employment_Status} = '06 ' or {@IBSH0162.IB_Employment_Status} = '30 ')
then 'Y' else if
{HRRM.TermDate}>#1/1/1950# then space(8)
Whenever the letter 'Y' is I would need the start of the quarter coming up. In this case 7/1/2013. Whereever the letter 'N' is I need the quarter they are eligible. In this case 10/1/2013. I have no idea how I would go about doing that.