sdawson Registered User. Local time Today, 14:09 Joined Apr 22, 2003 Messages 165 Nov 23, 2005 #1 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
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
KenHigg Registered User Local time Today, 09:09 Joined Jun 9, 2004 Messages 13,291 Nov 23, 2005 #2 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...
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...
sdawson Registered User. Local time Today, 14:09 Joined Apr 22, 2003 Messages 165 Nov 23, 2005 #3 Way too many
KenHigg Registered User Local time Today, 09:09 Joined Jun 9, 2004 Messages 13,291 Nov 23, 2005 #4 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...
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...
sdawson Registered User. Local time Today, 14:09 Joined Apr 22, 2003 Messages 165 Nov 24, 2005 #5 Yep. Me too. Seemed a bit long winded so I thought I'd ask. Thanks
ghudson Registered User. Local time Today, 09:09 Joined Jun 8, 2002 Messages 6,193 Nov 25, 2005 #6 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
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
sdawson Registered User. Local time Today, 14:09 Joined Apr 22, 2003 Messages 165 Nov 25, 2005 #7 Thanks GH. Works good.