Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 25
Default MS Query - Joining two tables....

Hi all,

I'm nearly pulling out what's left of my hair at this!

I have two tables in MS Query, one which I need to display all data from,
and the other from which I only need to display data if it relates to the
first table... basically an outer join? Trouble is, the link between the two
tables is a set of three fields; Requisition Number, Line Number, Release
Number. I can't set more than one outer join. What I'm trying to get is a
list of requisitions from first table, with order info (if available) from
second.

I've tried a whole outer join, but the fact that the query takes a parameter
completely throws this out.

Does anyone have any advice on what to try next?

Cheers,
Marc
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default MS Query - Joining two tables....

MS Query is a little lacking for anything but the simplest of queries. From
what you have described you might need to look into a custom VBA solution
using ADODB Recordset. This leverages your ODBC driver to execute the query.
The only other option I can think of would be to place Access between Excel
and your final database. Create a your sophisticated query in Access and use
MS Query to link to the Accesss query.
--
HTH...

Jim Thomlinson


"Marc T" wrote:

Hi all,

I'm nearly pulling out what's left of my hair at this!

I have two tables in MS Query, one which I need to display all data from,
and the other from which I only need to display data if it relates to the
first table... basically an outer join? Trouble is, the link between the two
tables is a set of three fields; Requisition Number, Line Number, Release
Number. I can't set more than one outer join. What I'm trying to get is a
list of requisitions from first table, with order info (if available) from
second.

I've tried a whole outer join, but the fact that the query takes a parameter
completely throws this out.

Does anyone have any advice on what to try next?

Cheers,
Marc

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Web query doesn't allow me to select tables cmarcus Excel Discussion (Misc queries) 0 August 12th 09 09:34 PM
Adding tables in a query J Gui Excel Discussion (Misc queries) 0 February 15th 08 03:49 AM
MS Query No visible tables ChrisP Excel Discussion (Misc queries) 3 September 6th 05 08:51 PM
Web Query from multiple tables jjbf22 Excel Discussion (Misc queries) 0 July 29th 05 03:28 PM
Two Excel tables in MS Query Jamshed Excel Discussion (Misc queries) 0 June 24th 05 12:33 PM


All times are GMT +1. The time now is 01:24 AM.

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

About Us

"It's about Microsoft Excel"