[Solved] Switching a subforms view from "form" to "datasheet"
have a form with a subform. On the form I want a button that when pressed will change the subforms view to datasheet. Ive tried alot of things to no avail.
Any Ideas?
EDIT:
A quick search in the forum and I found the same question with a solution:
have a form with a subform. On the form I want a button that when pressed will change the subforms view to datasheet. Ive tried alot of things to no avail.
Any Ideas?
EDIT:
A quick search in the forum and I found the same question with a solution:
Code:
Private Sub cmdChangeView_Click()
Me.YourSubformControlName.SetFocus
DoCmd.RunCommand acCmdSubformDatasheet
End Sub
Last edited: