Switching a subforms view from "form" to "datasheet"

HedgeKAM

Registered User.
Local time
Today, 13:19
Joined
Jun 22, 2004
Messages
15
[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:
Code:
Private Sub cmdChangeView_Click()
Me.YourSubformControlName.SetFocus
DoCmd.RunCommand acCmdSubformDatasheet
End Sub
 
Last edited:

Users who are viewing this thread

Back
Top Bottom