Re: Pivot Table: Asked Again

From: TomT (tomt_at_tomt.com)
Date: 02/15/05


Date: Tue, 15 Feb 2005 15:27:04 -0800

Ron, thanks for your reply. I have a table, Budget, which has e.g., columns
for amount, account, and period (month).

My client wants to view this data (as well as edit it) with the column
headings being each month, the rows the accounts, and the values the amount.
E.g.:

Account January February March
12345 500 1000 750
45678 650 120 400

etc

If I can't edit the values directly, I was hoping to be able to fire off a
double-click event on the amount value, which I could then use to give them a
way to provide a new value via a pop up form (for example). I could use the
account and period of the current record to write the new value to the table.

A form based on a crosstab might work, since at least I could work with the
events for the controls. I thought I read something about a pivot table being
in "edit mode", somewhere in the help files, but that might not have been
referring to the Access implementation of the pivot table - there were a
bunch of properties mentioned not available in the screen I was working in.

Thanks again,

Tom

"Ron Weiner" wrote:

> Tom
>
> Instead of using automation with an Excel Pivot Table on an Access Form, you
> might consider building a form based on a Access Crosstab query. This does
> not immediately solve you problem of being able to edit the fields (as
> Crosstab queries are NEVER updatable), but you do get more control over what
> the user is doing with an access form rather than an Excel Pivot table.
>
> If you absolutely must have the ability to edit the results of a crosstab
> then you will have to "Roll Your Own" by:
>
> Inserting the results of a crosstab query to a temp table
> Binding a form to the temp table
> Then at an appropriate time (when the form closes), write all changes back
> to your normalized data structure using custom code that you will have to
> write.
>
> There are lots of gotcha's in this process, and it does require at minimum
> an intermediate level of VBA programming expertise, but is absolutely
> doable. You may want to re-think your needs before you set out on this
> road.
>
> Ron W
>
> "TomT" <tomt@tomt.com> wrote in message
> news:7ED1200B-4F76-4F8D-B07D-1E533E0CC027@microsoft.com...
> > Doug,
> >
> > Thanks for your reply. I'm just experimenting, with one based on a single
> > table. The cells just represent actual values, not calculations.
> >
> > Is there any way you know of to get an event to fire off, e.g. if one of
> the
> > cells is double-clicked?
> >
> > Tom
> >
> > "Douglas J. Steele" wrote:
> >
> > > No, it's not possible. That's because the values in a pivot table
> represent
> > > an arithmetic operation on an unknown number of fields. If the cells
> > > represents the avg, for instance, what row(s) in the table would you
> update?
> > >
> > > --
> > > Doug Steele, Microsoft Access MVP
> > > http://I.Am/DougSteele
> > > (no e-mails, please!)
> > >
> > >
> > >
> > > "TomT" <tomt@tomt.com> wrote in message
> > > news:C649977E-58E7-461D-8851-203D8CB54278@microsoft.com...
> > > > Is it possible to edit data in an Access 2003 pivot table? If not
> > > > directly,
> > > > are there any workarounds?
> > > >
> > > > I was seeing if I could e.g. do something via a click event in a cell,
> but
> > > > it does not fire. It appears there are some events for the pivot table
> > > > object, but I cannot find any info on this.
> > > >
> > > > thanks for any help,
> > > >
> > > > TomT
> > > >
> > >
> > >
> > >
>
>
>



Relevant Pages

  • Re: Design Question - Accounts/Transactions
    ... Design questions are difficult to give definitive answers to in a newsgroup since so often design decisions boil down to "it depends". ... I would just INCLUDE the amount in your ix_Transaction_account index. ... Unless you will have a very large number of transactions for each account, the performance will probably be OK, and you will not have denormalized your data. ...
    (microsoft.public.sqlserver.programming)
  • Re: Aging Function
    ... for each account. ... >DebitID, and Amount. ... >from Debits left join qryInvoiceReceiptTotals ... Start a transaction to ensure that all ...
    (microsoft.public.access.modulesdaovba)
  • Re: Aging Function
    ... Why then do you need to produce aging reports on outstanding debits? ... >>and credits) is already entered and there will be no ... >>> for each account. ... >>>>DebitID, and Amount. ...
    (microsoft.public.access.modulesdaovba)
  • Re: JEWS KILLED JEWS, NAZIS KEPT THEIR HANDS CLEAN
    ... account. ... Well Sarah will could the world, and if Sam okay dismisses it too, the ... amount will offset but the excess clinic. ...
    (rec.aquaria.marine.reefs)
  • Re: [ot] [but important] e-Fraud
    ... I tend to check my online accounts every week or so, ... and credit card. ... honestly, if I'd not seen an exact amount I'd never have spotted it, as ... The one *slight* annoyance is that they cancelled the entire CC account, ...
    (rec.motorcycles)