stormin_norm
Registered User.
- Local time
 - Yesterday, 20:25
 
- Joined
 - Apr 23, 2003
 
- Messages
 - 213
 
I have a toggle button which is supposed to flip the form from 'view only' to 'edit mode'. Problem is once .Allow* is false then the toggle button is disabled. I had a break point in VB and it never was hit.
I tried pushing the users to click yes/no on an Update Record question (Forms AfterUpdate event), but they love their 'ol view/edit toggle.
	
	
	
		
 I tried pushing the users to click yes/no on an Update Record question (Forms AfterUpdate event), but they love their 'ol view/edit toggle.
		Code:
	
	
	Private Sub ToggleViewEdit_Click()
    If (Me.ToggleViewEdit) Then
        'toggle is pushed in (selected EDIT mode)
        Me.ToggleViewEdit.Caption = "EDIT"
        Me.Form.AllowAdditions = True
        Me.Form.AllowDeletions = True
        Me.Form.AllowEdits = True
    Else
        'toggle is released
        Me.ToggleViewEdit.Caption = "VIEW"
        Me.Form.AllowAdditions = False
        Me.Form.AllowDeletions = False
        Me.Form.AllowEdits = False
    End If
End Sub