A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Query based on two unrelated tables



 
 
Thread Tools Display Modes
  #1  
Old July 22nd, 2008, 04:55 PM posted to microsoft.public.access.queries
ryguy7272
external usenet poster
 
Posts: 1,593
Default Query based on two unrelated tables

I am trying to build a query, based on two unrelated tables, and I am
encountering some difficulties. i think Access is building something called
a 'Cartesian Product' (according to the Access 2007 Bible). There really
isn't a relationship between the two tables, but I was hoping to get all data
in one table, and export to an Excel sheet (for creating various reports with
Pivot Tables). Anyway, the Cartesian Product is creating wayyyyy too many
records, or combinations of records, and the Union Query is stacking
inappropriate data in inappropriate fields (columns) and this is totally
screwing up my pivot tables.


Thanks for any and all help,
Ryan---

--
RyGuy
  #2  
Old July 22nd, 2008, 05:59 PM posted to microsoft.public.access.queries
Klatuu
external usenet poster
 
Posts: 7,074
Default Query based on two unrelated tables

It puzzles me how you would expect to combine totally unrelated data into one
table. And, yes, you are getting a Cartesian Product.
If the table structures are the same, you can use a Union query to export
the data.

If they structures are not the same, can you describe what the data are like
and how you want to put them together?
--
Dave Hargis, Microsoft Access MVP


"ryguy7272" wrote:

I am trying to build a query, based on two unrelated tables, and I am
encountering some difficulties. i think Access is building something called
a 'Cartesian Product' (according to the Access 2007 Bible). There really
isn't a relationship between the two tables, but I was hoping to get all data
in one table, and export to an Excel sheet (for creating various reports with
Pivot Tables). Anyway, the Cartesian Product is creating wayyyyy too many
records, or combinations of records, and the Union Query is stacking
inappropriate data in inappropriate fields (columns) and this is totally
screwing up my pivot tables.


Thanks for any and all help,
Ryan---

--
RyGuy

  #3  
Old July 22nd, 2008, 06:18 PM posted to microsoft.public.access.queries
ryguy7272
external usenet poster
 
Posts: 1,593
Default Query based on two unrelated tables

Sorry to confuse you Dave. I'm still learning about this stuff, so it's
confusing for me too. The structures of these tow tables are not the same,
so I don't believe the union query will give me what I need. I will just
export the two tables to Excel and do it in that environment.

Thanks,
Ryan---

--
RyGuy


"Klatuu" wrote:

It puzzles me how you would expect to combine totally unrelated data into one
table. And, yes, you are getting a Cartesian Product.
If the table structures are the same, you can use a Union query to export
the data.

If they structures are not the same, can you describe what the data are like
and how you want to put them together?
--
Dave Hargis, Microsoft Access MVP


"ryguy7272" wrote:

I am trying to build a query, based on two unrelated tables, and I am
encountering some difficulties. i think Access is building something called
a 'Cartesian Product' (according to the Access 2007 Bible). There really
isn't a relationship between the two tables, but I was hoping to get all data
in one table, and export to an Excel sheet (for creating various reports with
Pivot Tables). Anyway, the Cartesian Product is creating wayyyyy too many
records, or combinations of records, and the Union Query is stacking
inappropriate data in inappropriate fields (columns) and this is totally
screwing up my pivot tables.


Thanks for any and all help,
Ryan---

--
RyGuy

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:56 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.