S
spnxd0
I'm creating a pivottable form and the requirements are for the user t
be able to double click on a cell in the form and it should pop
dialog that would allow them to replace the data in that cell. I ca
do the data manipulation, it is similar to a previous form, but I nee
some more info from the pivottable first. How can I determine th
values for the rows and columns? I can get the value for the cell, bu
I also need to know what row and column that cell is from.
Here is my code so far:
If Me.CurrentView = acCurViewPivotTable Then
Dim sel As Object
Dim objPDetailRange As Object
Dim objPDetailCell As Object
Dim stDocName As String
Dim stLinkCriteria As String
' Get the selection.
Set sel = Me.PivotTable.Selection
If TypeName(sel) = "PivotDetailRange" Then
Set objPDetailRange = PivotTable.Selection
Set objPDetailCell = objPDetailRange.TopLeft
MsgBox objPDetailCell.Value
'stDocName = "ReplaceAssemblyPrototype"
'DoCmd.OpenForm stDocName, , , stLinkCriteria
End If ' typename(sel) = "PivotDetailRange"
End If ' Me.CurrentView = acCurViewPivotTabl
be able to double click on a cell in the form and it should pop
dialog that would allow them to replace the data in that cell. I ca
do the data manipulation, it is similar to a previous form, but I nee
some more info from the pivottable first. How can I determine th
values for the rows and columns? I can get the value for the cell, bu
I also need to know what row and column that cell is from.
Here is my code so far:
If Me.CurrentView = acCurViewPivotTable Then
Dim sel As Object
Dim objPDetailRange As Object
Dim objPDetailCell As Object
Dim stDocName As String
Dim stLinkCriteria As String
' Get the selection.
Set sel = Me.PivotTable.Selection
If TypeName(sel) = "PivotDetailRange" Then
Set objPDetailRange = PivotTable.Selection
Set objPDetailCell = objPDetailRange.TopLeft
MsgBox objPDetailCell.Value
'stDocName = "ReplaceAssemblyPrototype"
'DoCmd.OpenForm stDocName, , , stLinkCriteria
End If ' typename(sel) = "PivotDetailRange"
End If ' Me.CurrentView = acCurViewPivotTabl