What's the name of a subform?

Banaticus

Registered User.
Local time
Today, 03:48
Joined
Jan 23, 2006
Messages
153
I have a toggle box next to a subform. When the toggle is clicked, the subform should allow deletions/additions/edits. When the toggle is clicked again, the subform should not allow such.

I've tried the caption name for the subform but that doesn't seem to be working. What's the name of a subform?

Edit: In the following sub
Code:
Private Sub Name_Toggle_Click()
    If [Name Toggle].Value = True Then
        [Name Toggle].Picture = "F:\Access\redbutton.bmp"
        [Note Information Subform].NavigationButtons = False
    ElseIf [Name Toggle].Value = False Then
        [Name Toggle].Picture = "F:\Access\bluebutton.bmp"
        [Note Information Subform].NavigationButtons = True
    End If
End Sub
I've tried "[Note Information Subform]", "Forms![Note Information Subform]", "Forms![Apprentice Information]![Note Information Subform]", "[Note Info]" <- the record source
 
Last edited:

Users who are viewing this thread

Back
Top Bottom