473,399 Members | 3,302 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

MS Access datasheet view like pivot table

66 64KB
Hi Guys,

Is there any possiblity to bring pivot table view in datasheet. where we can group data and see the total on each group seperately ?


http://pbrd.co/182mJDo
Attached Images
File Type: png eg.png (8.7 KB, 294 views)
Feb 26 '15 #1
13 2003
twinnyfo
3,653 Expert Mod 2GB
I know it is possible to work with Pivot Tables using a Query or Table, but I have not worked with them in Access much (just played around with them a bit).

When you open a Table or Query in Datasheet view, go to the Home Tab, Views Group and select Pivot Table. I know you can play with it from there, but not sure what results to expect.
Feb 27 '15 #2
johny6685
66 64KB
Thanks twinnyfo, But I would like to make the pivot table through VBA. I mean a treeview structure datasheet through vba from a dynamic query which changes on user selection from a form.

Please see below site which will help you understand what I am looking for.

http://www.experts-exchange.com/Data..._27964604.html
Mar 2 '15 #3
twinnyfo
3,653 Expert Mod 2GB
Johny,

Keep in mind that there is a world of difference between a Tree View and a Pivot Table. Yes, there are some similarities, but they are much different.

If you just want grouping and totals, I think you can do exactly what you want to do with a report, with Grouping and Sums. Forms don't work quite that way.

How is this Tree/Pivot going to be used?
Mar 2 '15 #4
johny6685
66 64KB
As you stated, user would like to have the subtotal of each parent and child separately due to which I am thinking to get it through datasheet or report.

Like this


Parent Child Child1 Total
----------------------------------------------
ABC-------------------------------------50
-------------CDB------------------------10
---------------------------RST----------5
---------------------------UWV----------3
---------------------------MNO----------2
-------------EFG------------------------10
---------------------------NPO----------3
---------------------------PNO----------4
---------------------------FPO----------3
DBC-------------------------------------30
-------------HIG------------------------15
---------------------------KLM----------5
---------------------------RST----------10
-------------LMN------------------------15


But only worry with the report is, it will repeat the parent for all child and subchild. But user want that a single time and not repeated. I am not sure whether it is possible with report. Request your expertise
Mar 2 '15 #5
twinnyfo
3,653 Expert Mod 2GB
If you create headers for your groups it will only print once. As long as you have your groupings and sums created properly you should be able to create a report exactly as shown.
Mar 2 '15 #6
johny6685
66 64KB
Hmmm... I am not catching everything...

Do you have any example link or sample file twinnyfo.?
Mar 2 '15 #7
twinnyfo
3,653 Expert Mod 2GB
When you create your report, create groups with headers for Parent, Child, Child1 and Total. I don't have an example report I can send at this point. I'll try to grab something from work tomorrow.
Mar 2 '15 #8
johny6685
66 64KB
Hi twinnyfo, did you find any examples. I am really stuck into this part. :-(

I tried the Group and Total part but I am not sure whether it helps me for the dynamic report.

Please advise whether it will helps me to create a dynamic report or I have to look for another way.
Mar 6 '15 #9
twinnyfo
3,653 Expert Mod 2GB
What do you mean by a dynamic report? Reports, by their nature, are somewhat static, but can be manipulated in certain ways. They merely report the data that is provided. It is the manipulation of the data that you should be seeking.
Mar 6 '15 #10
johny6685
66 64KB
I am trying to create the report from a query during runtime with VBA code, so I am not sure how best "Group and total" will helps me in that.

Bcoz, my previous idea is to show the data in datasheet view, since the grouping and showing subtotal is not possible in datasheet I thought of using report but reports again it is dynamic as it created based on the user selection. So I am trying to create the report through vba based on the query.
Mar 6 '15 #11
twinnyfo
3,653 Expert Mod 2GB
As long as you have standardized groupings you should be fine.

Now, one thing that you might be able to do to play games with the report's grouping feature is to create "dynamic" grouping. So, the query may change based on what you want in the query, but it always creates a "Group1", "Group2" and "Group3", which would all apply to various parts of the data. Then you could assign a name to that group in another field. The report would have grouping based on the fields "Group1", "Group2" and "Group3" with corresponding text boxes for "GroupName1", "GroupName2" and "GroupName3" etc.

You just have to make sure that the output fields of the query are standardized with the report.

Based on the desired output in Post #5, it is very straightforward in reporting. But, from Post #11, it appears that the output fields of the Query change dynamically?
Mar 6 '15 #12
johny6685
66 64KB
I am sorry about that. May be I might have confused in post 5 but if you see my post 3 i have made a note that this report is coming out from a query based on user selection.

I am going to try your words, let me check and get back if something I get positive. :-)
Mar 6 '15 #13
twinnyfo
3,653 Expert Mod 2GB
I am talking about the results you want in Post #5. If you ask me, it looks like Grouping/Summing within a report is the proper approach.

When you create a report in Access, you must declare what the corresponding field names will be for that report. Now, it is possible to manipulate the Record Source for a text box on a report, but most have found that this can be way more work than it is worth.

If your users are creating completely different queries with different field names and different levels of grouping/summing each and every time, it would be nearly impossible to capture that type of dynamic querying in a report built either with VBA or by modifying an existing report in VBA.

However, if you are able to create a query that ALWAYS has standardized Field Names (for example:

Expand|Select|Wrap|Line Numbers
  1. SELECT tblName.FieldName1 AS Group1
  2.     tblName.FieldName2 AS Sum1 ...
  3. GROUP BY Group1
  4. ORDER BY Sum 1 DESC;
) then you might be able to be quite successful on this.
Mar 6 '15 #14

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Georges Heinesch | last post by:
Hi: I have a tables in relationship to each other. When I open the main table (table 1), I see a "+" at the very left of every record. Clicking on the "+" expands the data of the linked table...
0
by: NB | last post by:
Hi My file server runs Win 2000 Pro and has Office XP installed. I host a data access page contaning Pivot Table on the server. In the page body I have some reference to an lpk file on the...
0
by: NB | last post by:
Hi My file server runs Win 2000 Pro and has Office XP installed. I host a data access page contaning Pivot Table on the server. In the page body I have some reference to an lpk file on the...
5
by: Danny | last post by:
I am using a switchboard to load a form that I would like to display in datasheet view or table view. But it does not go into that mode when using the switchboard wizard to launche the form. is...
1
by: matthew kramer | last post by:
Hi, I'm using the reverse pivot technique on an excel spreadsheet to create a list dataset from which I can make a pivot table in excell. The only problem is that because there are so many...
0
by: Alexander Mandl | last post by:
Hello I have a pivot table in an Access form and open the pivot Table (Excel OLE Object) from within Access. In the Excel Table is a macro (signed) (in teh open event) running when opening the...
0
by: Pourya99 | last post by:
Hello, How do a extract the value of one field from the currently selected record in a pivot table? I am currently using the following event: <SCRIPT language=vbscript event=SelectionChange...
0
by: SteveM | last post by:
I have created a form in Pivot Table View. The form runs fine on all local workstations but does not show any data on Server 2003. Anyone know of any issues with Server 2003 and Access forms in...
4
by: olseni | last post by:
Hi all I have a problem using datasheet in a subform (Access 2007). When the user is updating numbers or text in a column, and jumps to the next record using the 'Enter' button, sometimes, but...
3
by: cheweedog | last post by:
I get a error message anytime I try to create a pivot table in access. The message is not enough memory to create pivot table. I have tryed just limited items and still get this message. My PC has...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.