BarryMK
4 strings are enough
- Local time
- Today, 09:47
- Joined
- Oct 15, 2002
- Messages
- 1,350
Is it possible to display a textbox if a condition is met. For example if a date diff is less than two days then display a text box in each record meeting this criterion with the text "Fail" and one showing "Pass" if greater than 2 days?
Reportsmith allows this function using a macro suchas the one below:
Sub respby()
JStartDate = datefield("AStartDate",1)
JTargetDate = datefield("ATargetDate",1)
If JStartDate < 0 then
Result = " NoActs"
else
Result = "Pass"
End if
if JStartDate > JTargetDate then
Result = "FAIL"
end if
Derivedfield Result
End Sub
Reportsmith allows this function using a macro suchas the one below:
Sub respby()
JStartDate = datefield("AStartDate",1)
JTargetDate = datefield("ATargetDate",1)
If JStartDate < 0 then
Result = " NoActs"
else
Result = "Pass"
End if
if JStartDate > JTargetDate then
Result = "FAIL"
end if
Derivedfield Result
End Sub
Last edited: