Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can not change data after a date

Status
Not open for further replies.

jedrtd

Programmer
Jul 22, 2001
23
US
I want to set the data so if the date is < 03/31/05 in a record, you can not change any data in that record, you can look at it but not change it. How would I do this
 
In the Current event procedure of the form:
Me.AllowEdits = (Me![date control] >= #03/31/2005#)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
I need to change it for each month
 
Me.AllowEdits = (Me![date control] >= DateSerial(Year(Now), Month(Now), 0))

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
What I would like to be able to do is let who ever closes the data entry for the month to be able to change the date, maybe as part of an end of month process.
 
Thank you for the help, got it working made a new field check for empty if so can edit,


if not, no edit
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top