PC Review


Reply
Thread Tools Rate Thread

Crosstab query is no longer crosstab when I include field (in repo

 
 
Ben8765
Guest
Posts: n/a
 
      15th Oct 2009
Hello,

I'll say right off the bat, that here is a good chance i won't be able to
explain my problem well. It would be much easier if I could just show someone
my database.

Anyway, I have two tables: tblQuadrat_Data and tblSpecies_Data.

tblQuadrat_Data has a primary key: Quadrat_ID which is related to the
Quadrat_ID field in tblSpecies_Data.

tblQuadrat_Data also has a field called Transect_No.


I have a crostab query that tabulates data from tblSpecies_Data table, but
it also grabs information form the tblQuadrat_Data table, specifically
Transect_No.

I would like to make a report that
A)For each transect_No, shows data from the tblQuadrat_Data table and
B) still within that trasact_No group (indented), shows data from the
crosstab query

I have can do this successfully if I include the Quadrat_ID in the crosstab
query (which is how the crosstab query is related to the tblQuadrat_Data
table).

The problem:

If I include the Quadrat_ID in the crosstab query, the query is no longer
tabular/crosstab. It breaks the records up into many more rows. This is
because there is more than one Quadrat_ID for each record in the crosstab
query.

But, I need the Quadrat_ID in the crosstab query in order to link to the
tblQuadrat_Data table.

What I think i should do, but can't:

Link the Transact_No in the crosstab query to the Transact_No in the
tblQuadrat_Data table. I can't do this because:
A) There is already a relationship between the two tables (Quadrat_ID to
Quadrat_ID)
B) Transact_No is not the primary key in tblQuadrat_Data.

Again, what I would like to do:

a report that:
A)For each transect_No, shows data from the tblQuadrat_Data table and
B) still within that trasact_No group (indented), shows data from the
crosstab query

I doubt anyone can understand all this jibberish, but I thought it was worth
a shot.

-Ben

 
Reply With Quote
 
 
 
 
KARL DEWEY
Guest
Posts: n/a
 
      15th Oct 2009
Post the SQL of your crosstab and what other fields you want from
tblQuadrat_Data.

--
Build a little, test a little.


"Ben8765" wrote:

> Hello,
>
> I'll say right off the bat, that here is a good chance i won't be able to
> explain my problem well. It would be much easier if I could just show someone
> my database.
>
> Anyway, I have two tables: tblQuadrat_Data and tblSpecies_Data.
>
> tblQuadrat_Data has a primary key: Quadrat_ID which is related to the
> Quadrat_ID field in tblSpecies_Data.
>
> tblQuadrat_Data also has a field called Transect_No.
>
>
> I have a crostab query that tabulates data from tblSpecies_Data table, but
> it also grabs information form the tblQuadrat_Data table, specifically
> Transect_No.
>
> I would like to make a report that
> A)For each transect_No, shows data from the tblQuadrat_Data table and
> B) still within that trasact_No group (indented), shows data from the
> crosstab query
>
> I have can do this successfully if I include the Quadrat_ID in the crosstab
> query (which is how the crosstab query is related to the tblQuadrat_Data
> table).
>
> The problem:
>
> If I include the Quadrat_ID in the crosstab query, the query is no longer
> tabular/crosstab. It breaks the records up into many more rows. This is
> because there is more than one Quadrat_ID for each record in the crosstab
> query.
>
> But, I need the Quadrat_ID in the crosstab query in order to link to the
> tblQuadrat_Data table.
>
> What I think i should do, but can't:
>
> Link the Transact_No in the crosstab query to the Transact_No in the
> tblQuadrat_Data table. I can't do this because:
> A) There is already a relationship between the two tables (Quadrat_ID to
> Quadrat_ID)
> B) Transact_No is not the primary key in tblQuadrat_Data.
>
> Again, what I would like to do:
>
> a report that:
> A)For each transect_No, shows data from the tblQuadrat_Data table and
> B) still within that trasact_No group (indented), shows data from the
> crosstab query
>
> I doubt anyone can understand all this jibberish, but I thought it was worth
> a shot.
>
> -Ben
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Crosstab query to include fields with Null value Peggy Ball Microsoft Access Queries 2 11th Mar 2010 01:30 PM
To Include Count In Crosstab Query zyus Microsoft Access 1 14th Jul 2009 07:41 AM
I need to include a field in a crosstab query just to sort Michelle Ives Microsoft Access Queries 4 7th Jul 2009 10:34 PM
Include empty values in crosstab query Alex Microsoft Access Queries 5 19th Jun 2008 04:30 PM
Repo of CrossTab Query =?Utf-8?B?SXJzaGFkIEFsYW0=?= Microsoft Access Reports 2 12th Sep 2005 12:43 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:08 PM.