Learner having problem using a formula in a recordset selection:
I have a (Basic) formula to set an onschedule flag:
Dim OnSchedule as String
OnSchedule = "1"
'now check out actual project, to set
If {ProjStatus.ProjStatDesc} <> "Completed" Then
OnSchedule = "1"
Else
If {Initiatives.Project_enddate} > CurrentDate Then
if DateValue({Milestone.Initial_End}) <= CurrentDate Then
OnSchedule = "0"
End If
If DateValue({Milestone.Actual_start}) > DateValue({Milestone.Initial_start}) Then
OnSchedule= "0"
End If
End If
End If
formula = OnSchedule
I have this as the selection formula ( using Selection Expert) to show all Not On Schedule items:
{@onSchedule}= "0"
The formula item is placed in a Group header on the report.
But I get no records returned, altho' there many dozens that qualify.
Any clues to using formulae in selection please.
TIA
I have a (Basic) formula to set an onschedule flag:
Dim OnSchedule as String
OnSchedule = "1"
'now check out actual project, to set
If {ProjStatus.ProjStatDesc} <> "Completed" Then
OnSchedule = "1"
Else
If {Initiatives.Project_enddate} > CurrentDate Then
if DateValue({Milestone.Initial_End}) <= CurrentDate Then
OnSchedule = "0"
End If
If DateValue({Milestone.Actual_start}) > DateValue({Milestone.Initial_start}) Then
OnSchedule= "0"
End If
End If
End If
formula = OnSchedule
I have this as the selection formula ( using Selection Expert) to show all Not On Schedule items:
{@onSchedule}= "0"
The formula item is placed in a Group header on the report.
But I get no records returned, altho' there many dozens that qualify.
Any clues to using formulae in selection please.
TIA