473,387 Members | 1,798 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,387 software developers and data experts.

Report with multiple Linked tables with same type of data.

Is there a way to do a report that gets information (data from tables that have same field names) from 5 different tables? I don't know much about databases in general but have this problem. I have 5 different locations that have the same exact data tables (different names) but I wanted to roll up that data in 1 report so I can get calculations done. Is there a way to do this? Using access 2010.
Mar 5 '14 #1

✓ answered by GKJR

These tables should be combined into one table with a new field representing the location. You may want to create another table with all of the different locations and use these records as your list to choose from in the original table.

You don't need to worry about multiple users inputting data at the same time. Access Databases are locked at the record level, not the whole file like an Excel or Word document. You would most likely need to split the database into a back end file and multiple front end files (one for each user).

You could use Union queries, but it sounds like that will be more complicated for you if you don't understand normalization.

9 1575
You could try writing an sql query that looks like the following:

select * from table 1
union select * from table 2
union select * from table 3
union select * from tabel 4
union select * from tabel 5

This should give you all the data in each table in one report.
Mar 5 '14 #2
NeoPa
32,556 Expert Mod 16PB
It is certainly possible. However, the chances that your design is as it should be in such a scenario are somewhere shaving zero.

You need to consider designing your database to work for you rather than against you. Database Normalisation and Table Structures has a number of points you really need to see.
Mar 5 '14 #3
Well this all started as a separate location type database. Each location (5 total) has their own dedicated database because all locations would need to input data at the same time (COB) so it was structured to prevent folks from not being able to save data. Users are not computer savvy. That's why all the tables have the same field names but just are different table names (This is what they are used to from their hard copy). The data is similar in the sense that its all for the same purpose for metrics purposes. Now, they want a roll-up of all those individual reports to calculate when certain locations are selected. That's where I am at a loss. I will review the Database Normalization and Table Structures link and see if I can't figure something out but simple was focus of the database. That's what I am capable of at this point. That's why I am looking for help because now this is becoming more out of my element. I will also give Galiphraen's suggestion a shot too and see if that doesn't work too. Thanks for all the help.
Mar 6 '14 #4
GKJR
108 64KB
These tables should be combined into one table with a new field representing the location. You may want to create another table with all of the different locations and use these records as your list to choose from in the original table.

You don't need to worry about multiple users inputting data at the same time. Access Databases are locked at the record level, not the whole file like an Excel or Word document. You would most likely need to split the database into a back end file and multiple front end files (one for each user).

You could use Union queries, but it sounds like that will be more complicated for you if you don't understand normalization.
Mar 6 '14 #5
I made a new table (called LinkedTable) that has all the stores rolled up. I did this by doing the SQL query per Galiphraen's suggestion. I got the data to roll up. Now I need to sort the data where I can have some calculations populate when that store and date range is selected. Thanks every for the information so far!
Mar 6 '14 #6
NeoPa
32,556 Expert Mod 16PB
GKJR gives sensible advice. It's where I was coming from. However, locking in Access has a few options. A little more complicated than indicated - but fundamentally allows what he suggests even if you get the options wrong.

Using filtering you can still ensure that only one store ever sees the data for each store. Store A only ever sees or works on the data for Store A. The same for Store B. Etc.
Mar 6 '14 #7
Thanks everyone, I am understanding more of what's happening with the tables. I had not thought of it in those ways so I am very appreciative of everyone's input/advice.
Mar 6 '14 #8
NeoPa
32,556 Expert Mod 16PB
It's always nice to deal with someone who's interested in making progress in their understanding. I'm going to go ahead and set GKJR's post as Best Answer for you on this.
Mar 6 '14 #9
I am very appreciative that there are folks, like everyone who has posted, that are willing to give a beginner a chance. Great forum folks! Thank you so much!
Mar 7 '14 #10

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

Similar topics

2
by: Vern Shellman | last post by:
We've got a form in Access 97 SR-2 that works fine with local tables. The pertinent VB code populating a combo box looks like this: Private Function ShowMOFInfo() Dim db As Database Dim rec...
1
by: news | last post by:
I have an Access database of two tables. One table is a vehicle inventory table and the other is a vehicle maintenance table. There is one field common between both tables and these fields are...
7
by: Joe | last post by:
I am using Access 2003 and are linking to an Oracle 9i ODBC datasource (using Oracle ODBC drivers). After linking the tables in Access, I inspect the data contained in the linked tables. For...
15
by: brettclare | last post by:
I have linked a large SQL Server table to Access, however 'only' 2,195,439 records are shown and are available to query. Can I increase the size (cache??)/number of records showing in Access? ...
4
by: DraguVaso | last post by:
Hi, For my VB.NET application I have the following situation: 2 tables on my SQL Server: tblAccounts and tblRules. For each Account there are many Rules (so tblRules is linked to my tblAccounts...
3
by: Jer | last post by:
Using Access 2003 w/Windows XP. I have a database originally created with the tables internal. I split the database into a front-end/back-end with linked tables. Now when I open one of the...
6
by: falbrech_www | last post by:
Hi all, we got here one database which has several linked tables, whereas the link points to several csv-files. Currently we also have 2 different queries using the linked tables. Now one of us...
25
by: bubbles | last post by:
Using Access 2003 front-end, with SQL Server 2005 backend. I need to make the front-end application automatically refresh the linked SQL Server tables. New tables will be added dynamically in...
2
by: redpears007 | last post by:
Hi all, can anyone help me with this one? I have a database that has multiple linked tables and i want some code to tell the database on startup to do first check for the tables in a folder on...
1
by: Elite Hunter | last post by:
Hey guys: I have a problem. I have a report that displays some sales info. I have a query that takes the data from an SQL Server database and I store it in a dataset. Up to there everything is ok....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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: 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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.