I have created code to use the DoCmd to open reports nad queries in datasheet form. I have a query that opens in pivot table form.
What DoCmd syntax would I use to open a query in PT form?
Here is the code I've used with the DoCmd to open queries and reports. Cannot figure out how to get queries to open in PT form though.
Any help is appreciated.
What DoCmd syntax would I use to open a query in PT form?
Here is the code I've used with the DoCmd to open queries and reports. Cannot figure out how to get queries to open in PT form though.
Code:
Private Sub Combo0_AfterUpdate()
Dim strFormName As String
strFormName = Me.Combo0
DoCmd.OpenQuery strFormName, acViewNormal
End Sub
Any help is appreciated.