Article ID: 158248
Article Last Modified on 7/13/2004
CREATE TABLE Test (Order_ID C(5), Order_Date D(8))
IF This.Object.Value < DATE()
** Display a message if you try and enter a date earlier than
** the current date
= MessageBox("Order Date must be today or later")
ELSE
** Store the date they picked into the table
REPLACE Order_Date WITH This.Value
ThisForm.Refresh
ENDIF
APPEND BLANK
ThisForm.Olecontrol1.Object.Today
** Set the value of the Calendar Control to today's date
ThisForm.Refresh
SKIP -1
IF BOF()
GO TOP
ENDIF
ThisForm.Olecontrol1.Object.Value = Order_Date
ThisForm.Refresh
SKIP
IF EOF()
GO BOTTOM
ENDIF
ThisForm.Olecontrol1.Object.Value = Order_Date
ThisForm.Refresh
Keywords: kbhowto kbinterop KB158248