I am using access 2000. Win NT. I am trying to write a sub that will on_click open an OLE(pivot table) and refresh the data without having the user navigate to the pivot table in excel and press the refresh button. I am working with users that have very limited knowledge in access and excel, and i am afraid they will screw up the form. LOL.
I am trying to play off of the Edit Button that is the default on a pivot table form. Here is the code generated
Private Sub btnEdit_Click()
On Error GoTo btnEdit_Err
Me!PivotTable.Verb = acOLEVerbOpen
Me!PivotTable.Action = acOLEActivate
btnEdit_Exit:
Exit Sub
btnEdit_Err:
MsgBox Err.Description
Resume btnEdit_Exit
End Sub
I am a rookie when it comes to writing stored procedures. I am very strong in access itself. If anyone has any other suggestions on how to make the pivot table refresh without converting the database to a project, let me know. I am game for anything at this point. Users generating the reports are colleagues, so it doesn't have to be invisible to the user. Please help.
As always---- Thank you oh wise ones!!!!
I am trying to play off of the Edit Button that is the default on a pivot table form. Here is the code generated
Private Sub btnEdit_Click()
On Error GoTo btnEdit_Err
Me!PivotTable.Verb = acOLEVerbOpen
Me!PivotTable.Action = acOLEActivate
btnEdit_Exit:
Exit Sub
btnEdit_Err:
MsgBox Err.Description
Resume btnEdit_Exit
End Sub
I am a rookie when it comes to writing stored procedures. I am very strong in access itself. If anyone has any other suggestions on how to make the pivot table refresh without converting the database to a project, let me know. I am game for anything at this point. Users generating the reports are colleagues, so it doesn't have to be invisible to the user. Please help.
As always---- Thank you oh wise ones!!!!