473,511 Members | 16,738 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Transpose Data in an Access Query

iluvdeledio
2 New Member
Hi all,

I've got an ODBC linked table (linked to our office system) in Access 2000 that displays data as follows:

Member# Field Field Value
100001 1 20
100001 2 60
100001 3 0
100001 4 20
100001 5 01/04/2007
100005 1 100
100005 2 0
100005 3 0
100005 4 0
100005 5 01/02/2007
100009 1 0
100009 2 0
100009 3 50
100009 4 50
100009 5 01/01/2007

Does anyone know of a way, query or otherwise, that i can display the data like this:

Member# Field1 Field2 Field3 Field4 Field 5
100001 20 60 0 20 01/04/2007
100005 100 0 0 0 01/02/2007
100009 0 0 50 50 01/01/2007

I've tried the solution at http://www.rogersaccesslibrary.com/Otherdownload.asp?SampleName='Generic%20Function%2 0To%20Concatenate%20Child%20Records' but it doesn't seem to be right.

If this solution should work, can someone please advise so i know to keep working at it. Any other advice would be greatly appreciated

Thanks

Adrian
Apr 19 '07 #1
3 6537
MMcCarthy
14,534 Recognized Expert Moderator MVP
Try something like this ...
Expand|Select|Wrap|Line Numbers
  1. TRANSFORM First ([Field Value])
  2. SELECT [Member#]
  3. FROM TableName
  4. PIVOT Field;
  5.  
Apr 19 '07 #2
iluvdeledio
2 New Member
Thats great, thanks heaps for your help.

I also found out what a crosstab query does, which is good!!!

Thanks again
Apr 19 '07 #3
MMcCarthy
14,534 Recognized Expert Moderator MVP
Thats great, thanks heaps for your help.

I also found out what a crosstab query does, which is good!!!

Thanks again
You're welcome.
Apr 20 '07 #4

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

Similar topics

1
6416
by: jenny.rhodes | last post by:
Hello, Please can anyone guide me on how to transpose an access table where I have many records per id eg UserID Question Answer 1 1 a 1 2 d 1 3 ...
7
12035
by: sangeetha | last post by:
Hi, i need to transpose a nx1 matrix to 1xn matrix inorder to multiply with nxn matrix in c language ... can anyone help in this coding ..the nx1 matrix is pi the data type is double *pi..this is...
6
4943
by: JayDawg | last post by:
Excel has this cool little function where you can copy data, and then paste it transposed so that which runs across the rows now runs down a colum and visa versa. Is there a way in access to...
8
6052
by: m.wanstall | last post by:
Hi All, This is similar to a question I asked earlier however this is following a more "correct" way of doing things. I have normalised and summarised an Exchange addressbook (a few thousand...
5
1978
by: hummer | last post by:
In an Access query, I am trying to do the following: I have this: Account # Issue Problem ------------------------------------------------------------------- 1 a...
4
4020
by: pc_whocares | last post by:
My forehead is flat from pounding. I am building a DLL in VS2005 C++ for use in another software development platform. I am required to pass my array data in/out of the function via a...
4
23042
by: Haas C | last post by:
Hi all, I have a table with two columns, labeled Year and Loss. In the Year field, I have the numbers 1 to 10,000, each which can or cannot repeat. In the Loss column, i have numbers...
1
11236
by: brionesl | last post by:
Hi, I have seen other threads with the same question but I'm not too familiar with Access and their solutions often include writing VB code or very complex SQL statements. What I want to do is...
12
19805
by: jenniferhelen | last post by:
I am working with a query that has 6 columns and 101 rows; I would like to transpose the rows and columns. I have tried using a crosstab query but Access limits the row "fields" to 3 and this was...
0
7138
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
7355
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
7510
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...
0
5668
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,...
1
5066
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...
0
4737
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...
0
3225
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1576
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 ...
0
447
bsmnconsultancy
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...

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.