disable dataentry if date < today

G

Guest

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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top