Hello Everyone,
At work, employees have been using a spreadsheet that I am trying to
import into an access database to make some reports. The problem I'm
having is that in the spreadsheet, they are storing the same type of
information in multiple cells. For example, for each machine in the
shop, there is a code for why the machine was down--A1, B1, C1...for
example. The spreadsheet is set up like this:
Machine------------Code1----------Code2--------Code3
----------------------------------------------------------
Drill-----------------A1------------B1---------C1
Press--------------B2------------A1---------C2
Press2------------A1------------B2---------C1
There are slots for Code1, Code2, and Code3 just to give the user 3
slots to enter information. There is no order to it. I realise this
isn't a good way to do things, but I have hundreds of these
spreadsheets that I would like to import into a database and not have
to manipulate every one. I'm used to making a report that just groups
by a certain field so I can see all the code A1s, but A1 is in
different fields. Is there a way to group by A1 or any other code in
access. Any help or ideas would be appreciated.
Thanks,
-Chad 3 2138
Instead of going sideways u can go downward
in other words u can design a table with fields
Machine , code and date
this way the user can actually enter more than 3 codes
When u design reports u can use a cross tab query or something like
that
Now to import data to the the table u can copy paste it or u can use
the access API
Search in microsoft.com for the documentation (VBA for ACCEss and
EXcel)
Any ways it goes something like this
1 U have to add a reference to MS Excel in access VBA editer( Tools>
reference)
2 Dim AppExcel as Excel.application
3 if u refer to the documentation u can find methods to manipulate the
data
have fun!!! sh***********************@yahoo.com wrote:
Hello Everyone,
At work, employees have been using a spreadsheet that I am trying to
import into an access database to make some reports. The problem I'm
having is that in the spreadsheet, they are storing the same type of
information in multiple cells. For example, for each machine in the
shop, there is a code for why the machine was down--A1, B1, C1...for
example. The spreadsheet is set up like this:
Machine------------Code1----------Code2--------Code3
----------------------------------------------------------
Drill-----------------A1------------B1---------C1
Press--------------B2------------A1---------C2
Press2------------A1------------B2---------C1
There are slots for Code1, Code2, and Code3 just to give the user 3
slots to enter information. There is no order to it. I realise this
isn't a good way to do things, but I have hundreds of these
spreadsheets that I would like to import into a database and not have
to manipulate every one. I'm used to making a report that just groups
by a certain field so I can see all the code A1s, but A1 is in
different fields. Is there a way to group by A1 or any other code in
access. Any help or ideas would be appreciated.
Thanks,
-Chad
Once you get the data into Access, perform a union query:
SELECT [Machine], [Code1], "Code1" FROM Table
UNION SELECT [Machine], [Code2], "Code2" FROM Table
UNION SELECT [Machine], [Code3], "Code3" FROM Table;
This will result in a long list with machines and codes. You'll be able to
filter across all machines and codes from this one list.
sh***********************@yahoo.com wrote:
>Hello Everyone,
At work, employees have been using a spreadsheet that I am trying to import into an access database to make some reports. The problem I'm having is that in the spreadsheet, they are storing the same type of information in multiple cells. For example, for each machine in the shop, there is a code for why the machine was down--A1, B1, C1...for example. The spreadsheet is set up like this:
Machine------------Code1----------Code2--------Code3 ---------------------------------------------------------- Drill-----------------A1------------B1---------C1 Press--------------B2------------A1---------C2 Press2------------A1------------B2---------C1
There are slots for Code1, Code2, and Code3 just to give the user 3 slots to enter information. There is no order to it. I realise this isn't a good way to do things, but I have hundreds of these spreadsheets that I would like to import into a database and not have to manipulate every one. I'm used to making a report that just groups by a certain field so I can see all the code A1s, but A1 is in different fields. Is there a way to group by A1 or any other code in access. Any help or ideas would be appreciated.
Thanks,
-Chad
--
Message posted via http://www.accessmonster.com
kingston via AccessMonster.com wrote:
Once you get the data into Access, perform a union query:
SELECT [Machine], [Code1], "Code1" FROM Table
UNION SELECT [Machine], [Code2], "Code2" FROM Table
UNION SELECT [Machine], [Code3], "Code3" FROM Table;
This will result in a long list with machines and codes. You'll be able to
filter across all machines and codes from this one list.
Thanks for the help!
-Chad This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Sparky Arbuckle |
last post by:
Hello All! My problem is trying to calculate SubTotal in my FOR EACH
NEXT Loop. I am looping through depending on how many of each different
item is in the user's shopping cart. I am using each...
|
by: lennyw |
last post by:
Hi
I'm trying to use XSLT to do an xml to xml transformation where the
output xml contains summary data on the information in the input xml.
I've succesfully done a Muenchian grouping of the...
|
by: murch.alexander |
last post by:
Hi all,
I have a query that uses a subquery to subtotal one of its fields.
This part is working fine. The twist is that when I encounter certain
values, I want to reset the subtotal to zero and...
|
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...
|
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...
|
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
|
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...
|
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...
|
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...
|
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,...
|
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...
|
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: 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,...
| |