Is it possible to prevent users changing a date field in form view once a first date has been added?<br><br>Not allowing edits in design view is no good because this prevents data from being added at all.<br><br>Thanks
Off the top of my head, in your beforeupdate event, can you check the OldValue property? If it is Null, then the user is entering data for the first time and everything is OK, but if the OldValue is not Null then undo.<br><br>Here is the code to put in the BeforeUpdate event <br><br> If Not (IsNull(Me!YourControlName.OldValue)) Then<br> <br> MsgBox "You cannot change a value once it has been entered!"<br> Cancel = True<br> Me!YourControlName.Undo<br> End If<br><br>Hope that helps. <p>Kathryn<br><a href=mailto: > </a><br><a href= > </a><br>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.