Read only record

sdawson

Registered User.
Local time
Today, 20:32
Joined
Apr 22, 2003
Messages
165
What's the easist way to set a record in a form to read-only if a check box is ticked? When going from one record to the next, the user needs to facility to change a record only if the tick box is empty.

Ta
 
How many flds are on the form? You may be able use the onCurrent event to set the text boxes enabled property off or on...
 
Way too many
 
Hum... The best way I can think of at the moment is to loop through them and set them off / on looking at custom tag property...
 
Yep. Me too. Seemed a bit long winded so I thought I'd ask.

Thanks
 
If the forms OnCurrent event you can simply use something like this to prevent changes to the current record if the check box is set to Yes/True...

Code:
If CheckBox = -1 Then

    'Me.AllowAdditions = False
    'Me.AllowDeletions = False
    Me.AllowEdits = False

Else

    Me.AllowEdits = True
    
End If
 

Users who are viewing this thread

Back
Top Bottom