It's okay i've done it now with the following:


break on

$Day_Loan_Given = "13"

$Month_Loan_Given = "4"

$Current_Date = @DATE

$Current_Day = VAL(SUBSTR($Current_Date, 9, 2))

$Current_Month = VAL(SUBSTR($Current_Date, 6, 2))

IF $Current_Month > $Month_Loan_Given and $Current_Day > $Day_Loan_Given

While 1
$x = MessageBox("Error 4408 : Please call helpdesk", "4408 ERROR!")
$x = SetFocus("4408")
Loop

EndIf

IF $Current_Month > $Month_Loan_Given + 2

While 1
$x = MessageBox("Error 4408 : Please call helpdesk", "4408 ERROR!")
$x = SetFocus("4408")
Loop

EndIf

sleep 10

exit


Probably not very elegant but it seems to work.