I got a program and i wan't to build in an option that users
first need to select the option editable ON.

so far i got a script but it won't work with subforms and it even disables
the option buttons. i need to get it something like CurrentRecord.
Anyone have an idea?

Editable:
Yes (*)
No ()

VB Code:
  1. 'edit on/off
  2. Private Sub Edit_AfterUpdate()
  3.  
  4.     If Me.Edit = 1 Then
  5.        'on
  6.         Me.Form.AllowEdits = True
  7.      ElseIf Me.Edit = 2 Then
  8.          'off
  9.          Me.Form.AllowEdits = False
  10.     End If
  11. End Sub