DLG_HDATE Dialog Component
The DLG_HDATE dialog component sets the "from" date to use in the filter expression that selects records for the GRD_HISTCUST and GRD_HISTQUAN grid components.
The DLG_HDATE dialog component contains a text box control formatted as a popup calendar control and a submit button.
This code was placed under the Server Events > Validate property.
If ctod(CurrentForm.Controls.start_date) > date()then CurrentForm.Has_Error = .t. CurrentForm.Error_Message = " Date can't be after Today " ' Use ' ' instead of a space for html End If