A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

open form in pivot table view, from another form



 
 
Thread Tools Display Modes
  #1  
Old December 23rd, 2006, 11:06 PM posted to microsoft.public.access.forms
Paul B
external usenet poster
 
Posts: 459
Default open form in pivot table view, from another form

I have a button on a form to open another form, the form is a pivot table,
if I open it from objects, forms it opens in pivot table view, that is the
default, but if I open it from the button on the form it opens it in form
view, the code is below , how can I make it open in pivot table view? Thanks

Private Sub Command8_Click()
On Error GoTo Err_Command8_Click

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "frmBuildingCostPivotTable"
DoCmd.OpenForm stDocName, , , stLinkCriteria

Exit_Command8_Click:
Exit Sub

Err_Command8_Click:
MsgBox Err.Description
Resume Exit_Command8_Click

End Sub




  #2  
Old December 24th, 2006, 12:10 AM posted to microsoft.public.access.forms
Douglas J. Steele
external usenet poster
 
Posts: 9,313
Default open form in pivot table view, from another form

DoCmd.OpenForm stDocName, acFormPivotTable, , stLinkCriteria

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"Paul B" wrote in message
...
I have a button on a form to open another form, the form is a pivot table,
if I open it from objects, forms it opens in pivot table view, that is the
default, but if I open it from the button on the form it opens it in form
view, the code is below , how can I make it open in pivot table view?
Thanks

Private Sub Command8_Click()
On Error GoTo Err_Command8_Click

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "frmBuildingCostPivotTable"
DoCmd.OpenForm stDocName, , , stLinkCriteria

Exit_Command8_Click:
Exit Sub

Err_Command8_Click:
MsgBox Err.Description
Resume Exit_Command8_Click

End Sub






  #3  
Old December 24th, 2006, 01:08 AM posted to microsoft.public.access.forms
Paul B
external usenet poster
 
Posts: 459
Default open form in pivot table view, from another form

Doug, that did it, thanks and hope you have a Merry Christmas!

Paul


"Douglas J. Steele" wrote in message
...
DoCmd.OpenForm stDocName, acFormPivotTable, , stLinkCriteria

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"Paul B" wrote in message
...
I have a button on a form to open another form, the form is a pivot

table,
if I open it from objects, forms it opens in pivot table view, that is

the
default, but if I open it from the button on the form it opens it in

form
view, the code is below , how can I make it open in pivot table view?
Thanks

Private Sub Command8_Click()
On Error GoTo Err_Command8_Click

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "frmBuildingCostPivotTable"
DoCmd.OpenForm stDocName, , , stLinkCriteria

Exit_Command8_Click:
Exit Sub

Err_Command8_Click:
MsgBox Err.Description
Resume Exit_Command8_Click

End Sub








 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:03 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.