This one has me stumped.
I am trying to figure out the amount of days between dates. Its' just the dates are on different rows.
I'm trying to figure out the gap between the EndDate of one job to the StartDate between the next. Basically calculating the days of unemployment.
--------------------
Someone posted this code, but I'm having trouble with it.
1. Create a blank field in the details section, to contain the different
2. Create to parameters in the declaretion section of the report
Dim MyStartDate, MyEndDate
3. On the on format event of the detail section you can write the code
section
MyEndDate = Me.[StartDate]
If not isnull(MyStartDate) and not isnull(MyEndDate) then
Me.BlankFieldName = DateDiff("d",MyStartDate,MyEndDate)
End If
MyEndDate = Me.[EndDate]
Any ideas???!!!
Thanks
I am trying to figure out the amount of days between dates. Its' just the dates are on different rows.
Code:
Name Employment StartDate EndDate
===============================================
Jon Doe Job1 7/22/05 8/15/05
Jon Doe Job2 8/18/05 9/01/05
Jon Doe Job3 2/01/06
--------------------
Someone posted this code, but I'm having trouble with it.
1. Create a blank field in the details section, to contain the different
2. Create to parameters in the declaretion section of the report
Dim MyStartDate, MyEndDate
3. On the on format event of the detail section you can write the code
section
MyEndDate = Me.[StartDate]
If not isnull(MyStartDate) and not isnull(MyEndDate) then
Me.BlankFieldName = DateDiff("d",MyStartDate,MyEndDate)
End If
MyEndDate = Me.[EndDate]
Any ideas???!!!
Thanks