General information
Category:
Forms & Form designer
Title:
-IF- in INIT of textbox not working properly?
I am trying to calculate the control source based on data. Perhaps I am not even using the correct tool? Both data fields are defined as date.
* This one does not work!!(-245820) answer when a valid date is enterd.
if ((year(apptrack.issueprmt)>1) .and. (year(apptrack.noprmdte)< 1))
THIS.CONTROLSOURCE="0+int(val(SYS(11,apptrack.issueprmt)) - val(SYS(11,APPTRACK.APPRECVD)))"
endif
* This one does work!!
if ((year(apptrack.noprmdte)>1) .and. (year(apptrack.issueprmt)< 1))
THIS.CONTROLSOURCE="0+int(val(SYS(11,apptrack.noprmdte)) - val(SYS(11,APPTRACK.APPRECVD)))"
endif
Can someone put me on the correct path! Thanks!
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only