473,395 Members | 2,423 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,395 software developers and data experts.

Query in Access/Excel that shows count of instance in records

Greetings,
I am very new to working with databases, and I am not sure how to go about structuring the query I need. What I have is an Access database with approx. 400,000 records in 5 fields. The fields are owner, filename, size, path, modified date. What I would like to do is take the field "filename", and come up with a count of the different file types listed in the records (XLS, PPT, DOC, etc...) as well as a sum of the bytes that those counts entail. The filenames are in long filename format with the typical .XXX extensions. The ultimate goal is to get this information into Excel where I can put together a summary page with a distribution breakdown of all the file types, their byte count and their overall impact on the server storage space.
The queries I have attempted will get me the list of, say XLS files, but will not show me the other types available. I realize this is because I have hard-set the criteria to "XLS" in the query.

Having rambled on enough above, my questions are:
1. How can I structure the query to filter on all extensions available without having to hard set the criteria for each individual one?

2. How can I import that query into Excel where I can use a pivot table or other means to make actionable the results of the query?

Any help you good folks can provide will be most appreciated. Thanks in advance for your time and expertise.

Ron
Oct 4 '06 #1
1 2751
NS3687
4
Ron,

I think you need to do a few things there.
1. To add some functions to create a seperate column for file extension.
Assuming that .XXX is consistent in all your records and always at the end of the long filename.

MID([Filename], Len(Trim([Filename]))-4, 4)

2. 400,000 records won't work in Excel. Max you have 65,536. I suggest you do a few "views" to structure your data, i.e.,

View01 - you create query using design view to add Extension column from the original table you have.

View02 - you use from View01 as input. You can do a count by EXT to get how many files per each type, then do a SUM of file size.

As for making it some ability to simulate Pivot table - I have no idea. I'm looking to find ways for that as well

Hope this help -
NS3687
Oct 5 '06 #2

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

Similar topics

2
by: jh8735 | last post by:
I use Access to run reports from various pieces of financial data. The one query that I have been unable to produce, but need is the following: A query that yields all accounts from a person...
6
by: Ajay | last post by:
Hi I am trying to do the following. I have a set of records Example 1 Test 2 test 3 TEST 4 ACCESS 5 EXCEL
1
by: Don Sealer | last post by:
I need some help. I have a database that right now has about 3000 entries. The database tracks products and the quantities and defects associated with the products. There are about 22 products...
0
by: Mike Knight | last post by:
(I've also posted this problem on microsoft.public.excel.programming) I have a MS Access 2003 Database named "AS400 Fields.mdb". This database contains links to tables on an AS400. In MS...
3
by: Chuck | last post by:
Hi, I have a somewhat unique problem (at least unique to me, and I've been doing this for longer than I care to admit). I have a client that needs to print cards onto perforated card stock (so...
3
by: etwebbox | last post by:
Hoping someone has some ideas on how to solve this issue: I have a macro in excel which runs a query against an Access DB (it actually calls a query inside of Access). The query is not bringing...
5
by: Wired Hosting News | last post by:
I tried to be breif and give a scenario so as not to be overlooked because it was soooo long. Let me give you real world. I am a manufacturer of goods and produce 11 items that are distributed...
18
by: WilhelmAccess | last post by:
Hi, I am trying to automate the running of a SQL Query. I have a Table in Access 2003 that contains records with several fields, (member identifier, $ amount and months during the year they were...
1
by: randyse | last post by:
Hello all, This is my first post, please let me know if I've missed any relevant data or guidelines. I'm using Access 2003 for the database and Excel 2003 for the reporting to avoid having...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.