Add the following code in the DataSet's BeforPost event:
IF (DS1.fieldByname ('wx_date'). isnull) or (DS1.fieldByname). asstring = ') THEN BEGIN ShowMessage (' Please enter the date! '); try ds1.active: = false; / / To continue to press Refresh Button Abort; Except ShowMessage ('illegal operation (when you enter or modify, the system does not allow the cursor to other lines!), Continue, click Refresh button!');