473,395 Members | 1,730 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.

Convert Column to Rows in Access

Hello,
I want to convert column into rows in SharePoint 2013.
I have tried by using pivot /U n Pivot , but still i have got n Issue.

please see the following Command I have written in access database.

Expand|Select|Wrap|Line Numbers
  1. SELECT  [Case Number], [Author 1], [Author 2], [Author 3]
  2. FROM 
  3.    (
  4. SELECT   [Case Number], [Author 1], [Author 2], [Author 3]
  5. FROM [Gold Metadata]
  6. UNPIVOT
  7.    (Orders FOR [Gold Metadata] IN 
  8.       ( [Author 1], [Author 2], [Author 3])
  9. )AS unpvt;
  10. GO


Please give me any solution on it

Thanks ,
Samadhan Kshirsagar
Jun 6 '14 #1
4 4527
Luuk
1,047 Expert 1GB
They removed pivottables from Access in Office2013
(link: http://answers.microsoft.com/en-us/o...9-5215e0887aff
Jun 7 '14 #2
twinnyfo
3,653 Expert Mod 2GB
Samadhan,

What is the purpose of converting Columns to Rows? This is similar to saying that a Field is equivalent to a Record and vice versa, which is definitely not the case in Access.

It's difficult to follow from your post exactly what you want to do, what the beginning data looks like and what your completed data needs to look like. If we had more information we can help guide you to a proper solution.

Thanks!
Jun 9 '14 #3
Rabbit
12,516 Expert Mod 8TB
Please use code tags when posting code or formatted data.

Access doesn't have an UNPIVOT. You need to use a series of UNION ALL queries.
Jun 9 '14 #4
zmbd
5,501 Expert Mod 4TB
Twinny, ( guessing here (^_^) )

Most likely OP is after a form of de-normalization such as I have to to do quite often for presentations for example:
Expand|Select|Wrap|Line Numbers
  1.            Iron   Copper       Arsenic
  2. sample1    0.03   BLDL(<0.01)  BLDL(<0.001)
  3. sample2    0.03   BLDL(<0.01)  BLDL(<0.001)
  4. sample3    0.03   BLDL(<0.01)  BLDL(<0.001)
  5. etc...
I am sure you can see how this would be normalized
(ie: [Tbl_results]!{[FK_Sample],[FK_Analyte],[TestResult]} )

This isn't always very easy to do, even with a cross-tab (or with a pivot which as pointed out earlier are no-longer available in Access2013:
(-) Access 2013 depreciated features
(-) SharePoint 2013 depreciated features)

If the union query wonts work then, I'm afraid that OP is going to have create a SP-List using Access-Macro (YUCK) that reads the field values of interest ( author? ), writes these as the SP-List header and then creates the row entries...

would be nice to see an example of the current data and how OP wants the data.
Jun 12 '14 #5

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

Similar topics

2
by: | last post by:
Hello All, I am having a lot of difficulty trying to bind a templated column, that is programmatically created for a datagrid, to a datasource column. I have a datasource containing 2 columns,...
0
by: santoshpayal | last post by:
Hi, I have a text file that contains a date column. The text file will be imported to database in SQL 2000 server. After to be importing, I want to convert the date column to date type. For...
1
by: newtechiebug | last post by:
I am trying to convert a MS Access Query to a SQL query and I need help with some IIF Statements? 2 in particular that I've encountered problems with are: Count(IIf(=0 Or...
0
by: schaapiee | last post by:
How do I make my columns/rows longer on a FORM by default? My 'File Path' is 30 characters, and my 'Rpt Date' is 12; both datarows appear with a fixed length of say 6. I can double click on a...
2
by: RookieDan | last post by:
Dear all, hope to get lucky with you.. Have normal Access 2003 DB. It has a standard table with one column showing dates in DD.MM.YYYY format. I hate that format and tries to convert it to...
6
by: September18 | last post by:
I have the following table in Access 2002: Empl | Date | Location 0001 | 12/1/1990 | POA 0001 | 3/1/1992 | SYL 0001 | 6/1/2000 | VNY 0002 | 4/3/2002 | TOA 0002 | 8/15/2006 | PAA I need to...
4
by: kevinkwh | last post by:
i wannn convert the following. thx in advance. data table desc nvarchar(100), amount numeric(18,2) FROM
7
by: Ken Jones | last post by:
Can this conversion be done using Microsoft Access? If so how? Could this be done using TRANSFORM and PIVOT SQL statements? The Old Format columns are NO and URL The New Format...
1
by: Chris Henderson | last post by:
Hi In Access 2010, is there a method to convert my data set so rather than the dates being columns as they are now, I would like to change them to rows. i.e. From Jan-10 Feb-10 ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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...
0
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...
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...
0
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,...

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.