disable dataentry if date < today

R

ria

I have a form in which I would like to disable data entry into a record if
the record date is < today.

Thanks
 
D

Dragon

Enter following code into your form's 'On Current' event. Adjust
accordingly.

If MyDate < Date Then
AllowEdits = False
Else
AllowEdits = True
End If
 
R

ria

thanks

Dragon said:
Enter following code into your form's 'On Current' event. Adjust
accordingly.

If MyDate < Date Then
AllowEdits = False
Else
AllowEdits = True
End If
 
Top