In an Access query, I am trying to do the following:
I have this:
Account # Issue Problem
-------------------------------------------------------------------
1 a Y
2 a N
2 h Y
2 w Y
3 d N
3 g N
4 c Y
5 c Y
I would like to get this (unique by acct#, and set # of additional columns):
Account # Issue1 Problem1 Issue2 Problem2 Issue3 Problem3
------------------------------------------------------------------------------------------------------------
1 a Y
2 a N h Y w Y
3 d N g N
4 c Y
5 c Y
Any help is greatly appreciated!
5 1983 MMcCarthy 14,534
Recognized Expert Moderator MVP
You have posted your question in the Articles section. I am moving it to the Access forum
ADMIN
I am reposting this to make more sense...
Access ADP transpose multiple records into one
--------------------------------------------------------------------------------
In an Access query, I am trying to do the following:
I have this:
Account # | Issue | Problem
-------------------------------------------------------------------
1 | a | Y
2 | a | N
2 | h | Y
2 | w | Y
3 | d | N
3 | g | N
4 | c | Y
5 | c | Y
I would like to get this (unique by acct#, and set # of additional columns):
Account # | Issue1 | Problem1 | Issue2 | Problem2 | Issue3 | Problem3
------------------------------------------------------------------------------------------------------------
1 | a | Y
2 | a | N | h | Y | w | Y
3 | d | N | g | N
4 | c | Y
5 | c | Y
Any help is greatly appreciated!
NeoPa 32,569
Recognized Expert Moderator MVP
Someone may be able to figure out a way to use Cross-Tab queries to answer your question exactly, but short of that, try :
( Listing Items Within GROUP BY Set)
NeoPa 32,569
Recognized Expert Moderator MVP
Your second post may well explain the situation better, but that should be done in the original thread so that it's possible for anyone to see what's already been posted and where you're at.
I've merged the two threads together.
Please let us know how you get on with the latest suggestion.
MMcCarthy 14,534
Recognized Expert Moderator MVP
You can't use a crosstab to return more than one column or one value per column.
Mary
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: WalterR |
last post by:
This is my first time here, so there may be earlier relevant threads of
which I am unaware. Though my experience with DB2 is not extensive,
such as it is was under OS/390 or equ. My main experience is IMS DB,
which leads to my question.
In IMS, there is an HDAM access method which can find a record without
using an index as such. At initial database load, it first formats the
entire space allocation into blocks of the given size. ...
|
by: jsudo |
last post by:
I have a Access database with a large amount of records (close to
500,000) that I would like to export to Excel. I found out that Excel
has the capability of of about 65,000 rows so I know I cannot export
the whole file at once. What I would like to do is divide the
database records into smaller groups that Excel can handle.
Does anyone know how I can export a group of records to Excel without
getting an error? I tried exporting...
|
by: Yannick Turgeon |
last post by:
Hello,
We are in the process of examining our current main application. We have to
do some major changes and, in the process, are questionning/validating the
use of MS Access as front-end. The application is relatively big: around 200
tables, 200 forms and sub-forms, 150 queries and 150 repports, 5GB of data
(SQL Server 2000), 40 users.
I'm wondering what are the disadvantages of using Access as front-end? Other
that it's not...
|
by: deko |
last post by:
Do I get more scalability if I split my database? The way I calculate
things now, I'll be lucky to get 100,000 records in my Access 2003 mdb.
Here some math:
Max mdb/mde size = 2000 x 1024 = 2,048,000k
Let's say on average each record in the database consumes 15k
2,048,000/15 = 136,533 records
|
by: krygsma |
last post by:
So, I need to figure out how to do what I want to do with Access. I
have many questions with mutually exclusive options, each option has a
value, never=0, few times=1...ect.. (then when questions are
"reversed", never will equal 4, which can be handled later but I'm open
to any ideas) but need to be displayed as text. The easiest solution to
this, I thought, would be option groups, perfect, they look beautiful,
it seems quite logical that...
| |
by: Arno R |
last post by:
Hi all,
I will have to handle a lot of really 'nice' data in a LOT of Excel sheets. It is all about music files (Billboard top 100)
I am afraid there really is a sheet for every year ... (Don't know this for sure yet...)
I definitely need to get this data in Access and get it normalized. (sigh ....)
The data is so 'nice' for the Import- and TransferSpreadsheet-wizard that the 'wizard' really chokes on it ;-)
Either the data is not...
|
by: Leszek Gruszka |
last post by:
I wrote code, that fill TableA with records by executenonquery.
But i want to have second TableB, that will be transposed TableA.
My code:
Public Sub SQL_Wpis()
Dim sSQL As String
sSQL = "SELECT * FROM KanaSecRep"
Dim objConn As New SqlConnection(sConnection)
Dim objDataAdapter As New SqlDataAdapter(sSQL, objConn)
Dim objDS As New DataSet("KA_STAN")
|
by: SKarnis |
last post by:
We are trying to rebuild a current Access 2002 (XP) mdb program to VB.NET
with a SQL database - we are having problems with a suitable combobox.
There are many threads discussing multiple column comboboxes in .NET. We
are having success with the multiple columns similar to the combobox from
Access 2002 (XP).
Our biggest problem is speed. In a form in Access 2002, our combobox is
able to load data in a table in separate Access database...
|
by: Boxcar74 |
last post by:
I think this is a little crazy but I supposed to figure out how to get the body of an email message (Outlook) into an Access DB table, with little to no effort :)
Here is the deal I receive email with the results from an online survey and I need to get the data into Access for reporting proposes.
-------------------------------------
I can get it in Access with a copy/ paste to Excel the use “Text to Columns” Then “Pate Special”/...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |