i am trying to display an error message if a customer is over 18
----- topmostSubform.Page1.dob::exit: - (FormCalc, client) ---------------
//todays date
var today = num2date(date(), DateFmt(1))
//difference between today and date of birth 'dob'
var diff = today - Date2Num(dob.rawValue, "DD/MM/YYYY")
//is it over 18 years 18*365.25=6574.5
if (diff > 6574.5) then
//alert message
xfa.host.messageBox(Check the customers age they may be over 18!)
endif
--------------------------------------------------------------------------
a textbox that displays the age would be enough but i dont think that is possible.