What's the name of a subform object?

B

Banaticus

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
 
R

Robert Morley

You were on the right track, and it looks to me like you tried everything
except the right thing. :)

[Note Information Subform].Form.NavigationButtons = False



Good luck,
Rob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top