473,385 Members | 1,587 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,385 software developers and data experts.

Crosstab query to fill values in Table

Giz
Hi,

How can I get a Crosstab Query to fill out a Table like so:-

A B C
+----+----+----
1: 1A : 1B : 1C
2: 2A : 2B : 2C
3: 3A : 3B : 3C

The number of Rows (1,2,3...) and Columns (A,B,C...) would be taken
from another Table/Query.

TanxInAdvance

Nov 13 '05 #1
5 3179
Could you elaborate somewhat? I'm not sure what you're asking; here's
my interpretation... You say you have x rows and y columns. You want
to form a matrix, a table, that's x by y. You also want the each cell
to be a concatenation; the number of the row with the letter
corresponding to the number of the column. Is this right?

I think I could help, but I need to know if this is what you are
looking for...

Sean

Nov 13 '05 #2
Giz
Hi Sean,

Sorry I was a bit vague, but you pretty much understand what I'm
looking for.

I have a Crosstab Query which pulls the number of Rows and Columns from
another Table/Query, but doesn't fill in all the possible blank cells
(Excel speak) within the Table. A "matrix" is a pretty good name for
what I am looking to achieve.

Cross-referencing and combining the first Row and Column values to fill
up the Table, akin to the grid which divides up a map.

Any clearer?

Nov 13 '05 #3
Giz wrote:
Hi,

How can I get a Crosstab Query to fill out a Table like so:-

A B C
+----+----+----
1: 1A : 1B : 1C
2: 2A : 2B : 2C
3: 3A : 3B : 3C


Create a cartesian product (that is, both the column and row tables but
no joins inbetween) and base a crosstab query on that

--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html
I prefer human mail above automated so in my address
replace the queue with a tea
Nov 13 '05 #4
Giz
Hi Bas,

Strange. The only difference between what you advised and what I did
was me taking both Row and Column information from a single
Table/Query.

It is now returning what I require.
Thanks to you.

Thanks to Sean also :-)

Nov 13 '05 #5
Giz wrote:
Hi Bas,

Strange. The only difference between what you advised and what I did
was me taking both Row and Column information from a single
Table/Query.


That is some difference indeed. You are asking, in fact, for two
independent axes of values, as if they were coordinates on a plane,
describing the whole plane. That means there must be two non-related
sources.
--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html
I prefer human mail above automated so in my address
replace the queue with a tea
Nov 13 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: James Neumann | last post by:
Environment: Access 2k, win2k Business Problem: I have to display returns on investments made over a period of years, and show the amount of return earned on each investment by year. For...
1
by: Nathan Bloomfield | last post by:
Does anyone know if there is any documentation which relates to Access2k + ? or can anyone help adjust the code? I am having trouble converting the DAO references. TITLE :INF: How to...
8
by: Penny | last post by:
(Access 2003 Multiuser Split DB, Windows XP Pro) Hi All, I would really appreciate just some basic tips on how to make a Crosstab Form based on a Crosstab Query. The query always has the same...
14
by: Tina | last post by:
My employer tracks productivity/performance of clinicians (how much they bill) each week, its averages for the month, and the 6 months. These averages are compared to their expected productivity....
2
by: Keith Wilby | last post by:
I have a report that is based upon a crosstab query which return only the columns (fields) it has data for. When my report runs it sometimes fails because some of the text boxes don't have a field...
1
by: greg | last post by:
I have a table that I want to left join with crosstab query and I want to be able to edit data in the table (only). However, once I perform the join, the entire query result cannot be edited. Is...
4
by: m.wanstall | last post by:
I have a crosstab query that compiles data for Months of the year. I have a stacked select query on top of that crosstab query that uses the latest 2 months data and exports it to a fixed length...
4
by: rdsandy | last post by:
Hi, I have some code below in VBA for Access 2003 which is on a button called "RentalCrosstabPercTtlQtyMonthLoc_Click". This is a crosstab query which brings up rental items down the side, who...
2
by: Jim Devenish | last post by:
I wish to create a crosstab query as the record source for a report. It needs to count data between selected dates which are entered by the user in a popup window. The following Select query...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
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
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...

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.