Transform Table From Horizontal To Vertical

Jun 4, 2007

Hi there, I got a little data transformation problem:

I have got a source table:

ID 1 2 3
1 x y z
2 xx yy zz

That I wanna transform to the following format:

ID ID2 Comment
1 1 x
1 2 y
1 3 z
2 1 xx
etc...


The problem is, that I need a routine that takes the column names of table 1 and uses them as values in table 2. So basically, every column of table 1 (1,2,3, etc.) should become a new data record in table 2.

Any ideas how to solve this?

Thanks!
Steve

View Replies


ADVERTISEMENT

Reports :: Printing Lines Vertical And Horizontal In A Report Like Table In Word Document

Sep 12, 2013

I need to replicate an existing report that has a number of 3 columns across the page and has 35-40 rows down the page...it's like a table in Word or a spreadsheet in Excel. I need to print the column and row lines.

Is there a simple way to include these in the report other than me drawing each and every line?

View 2 Replies View Related

Vertical To Horizontal

Apr 27, 2007

Here is how my table is set up:

System1 Subsystem1
System1 Subsystem2
System1 Subsystem3

I need a query that puts the data into one record, different cells:

System1 Subsystem1 Subsystem2 Subsystem3

Can this be done?
Thanks,
MJ

View 14 Replies View Related

Vertical/Horizontal Scroll Bar

Jan 6, 2006

Hi, In MS Access,

In the form design,

How can I change the Vertical Scroll bar color?
I want to keep it for using, but the color is always grey color.
How can I change the color of the scroll bar?

Thanks.

View 4 Replies View Related

Queries :: Transpose Vertical Text Values To Horizontal

May 25, 2013

I have a Volunteer Database that has teams. There is only one team leader but some of the teams have two or three assistants. Currently I have a query that lists all the assistants for each team vertically.What I want to do is list the Assistants horizontally under headings like Assistant 1; Assistant 2; and Assistant 3 for each team on one line.

View 6 Replies View Related

How To Make Vertical Data Horizontal And Remove Duplicate

Mar 10, 2015

bob@smith.com, 2010-01-10
bob@smith.com, 2010-02-10
bob@smith.com, 2010-03-10
bob@smith.com, 2010-04-10
ronda@q.com, 1984-01-02
ronda@q.com, 1990-04-02
ronda@q.com, 1996-08-02

want above data to appear as

bob@smith.com, 2010-01-10, 2010-02-10, 2010-03-10, 2010-03-10
ronda@q.com, 1989-01-02, 2010-04-10, 1984-01-02, 1990-04-02, 1996-08-02

View 1 Replies View Related

Forms :: Three-Level Navigation Form - First Two In Horizontal And Third In Vertical Orientation

Sep 20, 2014

How to Creating a Three-Level Navigation Form, First and second level must be in horizontal orientation, third level desirable be to vertical orientation and dependent of level 2.

View 1 Replies View Related

Forms :: Allow Horizontal And Vertical Scrollbars But Remove White Space (AC2007)

May 22, 2014

I have a form which I would like to enable scrollbars both horizontally and vertically (the main reason being, the application is designed for users with large / wide screens but may at some point be required on smaller screens)

Currently I have the scrollbars switched off and the form maximises but everything goes to pot if I resize the window. I'd like to add the scrollbars so if a user wants to resize the window to, say, half the screen, they can still scroll across to the 'hidden' parts of the form.

The problem with this is, if the form is maximised - or at least large enough to show the entire form - the area of the screen where the horizontal scrollbar resides is white (whereas the background colour of the form is a pale green) Which is quite unsightly.

I know I can remove the problem by removing the horizontal scrollbar and the navigation bar (which is already gone!) but then I can't scroll?

Is it possible to have a horizontal scrollbar but not have that white space at the bottom when the scrollbar is not required?

(Doesn't appear to be a problem with the vertical scrollbar?...)

View 8 Replies View Related

Queries :: Transform Table With Multiple Rows To One Row?

Dec 22, 2014

I have a table with multiple rows per member that I would like to convert to 1 row per member. I have a table that looks a bit like this:

Member_IDDiagnosis
10000Hypothermia
10000Frost Bite
10001Fatigue
10001Dehydration
10001Exhaustion
99999Exhaustion
99999Hypothermia

And I'd like to convert it to this:
Member_IDDiagnosis - 1Diagnosis - 2Diagnosis - 3Diagnosis - 4
10000 HypothermiaFrost Bite
10001 Fatigue DehydrationExhaustion
99999 Exhaustion Hypothermia

The columns don't line up well but I am looking for each diagnosis to move into one of the 4 columns, depending on whether it is the first, second, third or fourth diagnosis associated with the member.

View 3 Replies View Related

Tables :: Smooth Horizontal Scroll In Table View

Oct 19, 2012

Is it possible to change the scroll type to a "smooth" scoll when I'm in table view of a table?

View 2 Replies View Related

Transform A Field Name In Date And Add A New Field In Table

Jul 18, 2005

Hello,

I have a problem with my access base and i would like your advice. I have two tables in my base, in the first “Data” I have a field which name “Mtt”. I would like to transform the field name “Mtt” by the name of month preceding (if i‘am in August, I would like July like in the base DataAfter) but I would like make it by the code but i don’t know how can i do this ?. Is it possible to use the function Now().

In the second Table “Database” I have a lot of field and I would like insert a new field each month. I would like take the data “July” in the base “DataAfter” and insert this new field in the table DataBase. I would to do this operation each month. How can I do this?.

Thanks for your help,

Nilses

View 1 Replies View Related

How To Transform Data To Crosstab-like Format?

Apr 1, 2008

May i reach following function by Grid Query design or by SQL


Original:
==============================================
Factory 1-----------Product A
Factory 1-----------Product B
Factory 1-----------Product C
Factory 1-----------Product D


Factory 2-----------Product D
Factory 2-----------Product E
Factory 2-----------Product F

Factory 3-----------Product D
Factory 3-----------Product E
Factory 3-----------Product F


Result:
==============================================
Factory 1-----------Product A,Product B,Product C,Product D
Factory 2-----------Product D,Product E,Product F
Factory 3-----------Product D,Product E,Product F

View 7 Replies View Related

General :: XSL Transform Only Allows Access To Import Last XML Value

Dec 10, 2012

I'm trying to import an XML file into my access database using an XSL Transform (I only need certain bits of data), however when I import the tables and field names come through fine now but the only values that come through are the last values listed in the XML file... for instance when i import high there would be 10 high values but only the last one comes through.I would obviously like the "Day" field to be a date/time field in access, and the high and low to be a number field in access... but this is back-burner to solving the real issue listed up top.This is my XSL file:

Code:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="Transform Link (I don't have 10 posts yet and can't post links)">
<xsl:template match="/">
<Weather>
<xsl:for-each select="response/forecast/simpleforecast/forecastdays/forecastday">

[code]...

View 2 Replies View Related

Queries :: Transform Number Of Characters In A Field

Mar 28, 2014

I have a table with acct numbers of various lengths, ie:

246
18
36895
352119
472

I need to run a query so that all of the acct numbers are 8 characters long with zeros as placeholders in front of the actual acct numbers, ie:

00000246
00000018
00036895
00352119
00000472

I tried using the expression NewAcctNo: 00000000+[AcctNo], but that did not fix the problem.

View 2 Replies View Related

General :: Transform Excel Data To Access

Oct 24, 2012

1. how to transform excel data to access

2. how to create run time application : i tried it to make accde but no luck T_T "

View 4 Replies View Related

General :: Importing XML File Into Access 2010 With XSL Via Transform?

Dec 9, 2012

I'm having difficulty getting my import to work... when i call on the original XML file I get too many tables... when i call on the XML file using the transform function of Access with the XSL file it gives me only two tables "body" and "tr". Body contains the value "Weather" and tr contains the value "Day".

Import the day as month/day/year into a field "Day" in access table "WeatherSFCAL"

Import the Fahrenheit temp from the high section into the field "High" in access table "WeatherSFCAL"

Import the Fahrenheit temp from the low section into the field "Low" in access table "WeatherSFCAL"

View 3 Replies View Related

Queries :: SQL Crosstab Query With Multiple Grouping Levels - Transform Statement?

Mar 24, 2015

I'm trying to construct an SQL crosstab query that will output data like the picture I've attached in the .zip file.

The four variables from the data table would be [Client Accounting].[Marketer] (the left vertical column), [Client Accounting].[Closing Date] (the higher level horizontal column grouped by month), [Client Accounting].[Write Off] and [Client Accounting].[Refund] (the lower level horizontal columns as sums)

The totals column at the bottom and the two vertical columns at the right would be made in the report and wouldn't need to be in the query.

This is what I have so far but I don't know how to add a second TRANSFORM statement to be included and grouped by month!

Code:
TRANSFORM Sum([Client Accounting].[Refund]) AS SumOfRefund
SELECT [Client Accounting].[Marketer]
FROM [Client Accounting]
GROUP BY [Client Accounting].[Marketer]
PIVOT Format([Closing Date],"mmm") In ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");

View 2 Replies View Related

Queries :: PROPER Function - Transform Names In Upper Case In Capitalized Word

Dec 16, 2013

I have a small issue where I do have names written in UPPER CASE, I would like to transform them in Capitalized (each word), I understand that I cannot use the same function as in excel (PROPER) but something like StrConv, but as I do have a ‘comma’ in between the names I have something like that

Code:
StrConv(Left(Tbl_Telephony_Temp.Agent, InStr(Tbl_Telephony_Temp.Agent, ",")-1), 3)&", "&StrConv(Mid(Tbl_Telephony_Temp.Agent, InStr(Tbl_Telephony_Temp.Agent, ",") + 1), 3) AS CompleteName

Which as you can see is quite a complex statement, how can I simplify it?

Example of a name: VITOR, FONSECA, preferable output, Vitor, Fonseca

View 14 Replies View Related

Horizontal MAX

Apr 24, 2008

I have a query that looks like this:

TeamAway TeamHome Jury
---3----------6--------4
---9----------4--------2
---7----------8--------3
---2----------3--------4

How do I get a horizontal max so my query looks like this:

TeamAway TeamHome Jury Winner
---3----------6--------4--TeamHome
---9----------4--------2--TeamAway
---7----------8--------3--TeamHome
---2----------3--------4--Jury

View 3 Replies View Related

Horizontal Report

Sep 3, 2007

Hi,

I need to produce a report in which some records are repeated ACROSS the page rather than down.

If I was using Excel I'd just use Copy - Paste Special - Transpose.

Is there any way I can duplicate this approach in Access?

View 4 Replies View Related

Listbox HELP: Horizontal Scroll???

Mar 15, 2006

Settings are:

Column Count: 2
Column Widths: 0"; 20"
Bound Column: 1

Width: 9.5417"


Why am I not getting a horizontal scroll bar?

If I add a 3rd column in I get a horizontal scroll, but it scrolls from column to column instead of across the full text of one column.

View 5 Replies View Related

Add A Horizontal Scroll Bar To A List Box

Feb 27, 2008

I have a list box which shows table data, however i have alot of data and i need a Horizontal Scroll Bar in the list box, so i can view the data.

Any ideas or help?

Kind Regards
Richard

View 6 Replies View Related

Adding A Horizontal Scroll Bar To A List Box

Aug 25, 2004

How do you add a horizontal scroll bar to a list box?

View 1 Replies View Related

Adding Horizontal Scroll Bar To List Box

Sep 3, 2004

How do you add a horizontal scroll bar to a list box? I know that access will add a horizontal scroll bar when neccessary, but it will not add one to my list box. Is there a way to manually add one?

View 3 Replies View Related

Reports :: Horizontal Formatting Of A Report

Apr 23, 2015

I am having a problem with the formatting of a report. My boss would like for the report to show (grouped by employee name) a horizontal list like below and update itself.

Aircraft AS350 A119 AW139 AW189
Training Hours 300 50 25 160
OJT Completion 85% 100% 25% 45%

Each training class has a category in the table showing which model(s) the training is. For OJT I got it to count up the tasks and tasks completed in each model and calculate the percentage. I can easily get it to show vertical for each employee. I cannot get it to show like above. I tried using IIF statements to pull the hours and OJT by model aircraft. If I try to put it in the detail section it shows vertical and if I put it in the group of employee name it only returns one record (I assume its still trying to show vertical). The only way I could think of to get it to show properly was a crosstab query but its my understanding those are for archival purposes or for a snapshot and do not update. This report will need to update as things are entered.

View 1 Replies View Related

Having Details Section Stretch Vert And Horizontal?

Feb 27, 2006

I tried searching, to no avail. I've attached pics to represent my issue a bit clearer. I have a form that I want to be my switchboard, but my clients all have different resolutions, and this is where I run into the problem. I want the switchboard to not only be maximized, but appear maximized.

Here is the design view: Linkage (http://www.martinaustin.net/images/issue_design_view.jpg)
Here is the form view: Linkage (http://www.martinaustin.net/images/issue_form_view.jpg)

I want the date and bottom line to always be at the bottom. This works fine by simply using form headers and footers. The issue is that the Admin button will appear near the center (vertically) when viewed on a computer with high resolution, instead of just above the bottom horizontal line as I intend.

Does anyone know of a way to fix this?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved