Re: Lock Record
From: Ken Snell [MVP] (kthsneisllis9_at_ncoomcastt.renaetl)
Date: 10/07/04
- Next message: Jimmy Scaria: "Re: Access-VB Programming"
- Previous message: Melissa: "Lock Record"
- In reply to: Melissa: "Lock Record"
- Next in thread: AlCamp: "Re: Lock Record"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 7 Oct 2004 18:37:45 -0400
You could use the Current event to test if that field has a value, and if it
does, lock the controls for that record:
Private Sub Form_Current()
Dim blnLock As Boolean
blnLock = (Len(Me.DateFieldName.Value & "") <> 0)
Me.ControlName1.Locked = blnLock
Me.ControlName2.Locked = blnLock
Me.ControlName3.Locked = blnLock
' etc.
End Sub
--
Ken Snell
<MS ACCESS MVP>
"Melissa" <anonymous@discussions.microsoft.com> wrote in message
news:104401c4acbd$72152000$a301280a@phx.gbl...
> I have a database with records that include a date in the
> future. Is there way to "lock" the record once that date
> occurs so that users can no longer update fields?
- Next message: Jimmy Scaria: "Re: Access-VB Programming"
- Previous message: Melissa: "Lock Record"
- In reply to: Melissa: "Lock Record"
- Next in thread: AlCamp: "Re: Lock Record"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|