473,406 Members | 2,336 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,406 software developers and data experts.

Join Expression not Supported in Access 2000

I have a top query which works fine, and a bottom query will also works fine when you run them by themselves, but when you combine them with a union, I get the message "Join Expression not supported". Both top and bottom queries return 15 columns and the data types of the 15 columns in each query match. Any ideas.
Aug 25 '11 #1
4 1927
NeoPa
32,556 Expert Mod 16PB
My first idea would be to express more clearly your actual situation. Posting SQL is often a good early step, but don't let this stop you from explaining your situation using clear terminology in the question. Trust me, the help you can receive is heavily dependent on how easy it is to understand what you want.
Aug 25 '11 #2
I have a query that is like:
Expand|Select|Wrap|Line Numbers
  1. Select w.a,x.b,y.c,z.d 
  2. from w,x,y,z
  3. union all
  4. select e.f,g.h,i.j,k.l
  5. from e,g,i,k;
I call the two queries my top query and my bottom query with a union all between them.

FACT 1: The top query by itself works fine.
The bottom query by itself works fine.

FACT 2: Both top and bottom query have the same number of columns and the corresponding columns are of the same data types.

When I combine them in a UNION ALL I get the error message "Join Expression not Supported".

The actual top query is about 30 lines, and the bottom query is about 20 lines. The top query joins 9 tables, and the bottom query joins 3 tables.

All I am looking for is a clue or suggestion of what I could try to solve this problem or debug this problem.
Aug 26 '11 #3
NeoPa
32,556 Expert Mod 16PB
Dealing with such complex queries is always a bit fraught. Fundamentally I see no specific reasons for the message, but you had to simplify the SQL to post. I get that. Maybe you simplified the important information out though. Maybe Jet SQL simply cannot handle the number of separate record sources involved in the overall query.

Is it true that none of the tables are actually JOINed at all, but simply listed separated by commas? Frankly, I find it hard to envisage a query that vast and so randomly put together that makes any sense. I cannot comment directly, as I cannot see what you're working on, but I'd be very seriously suspicious that there is something very wrong with the design of your database if it includes a query such as you've described.

In short, I suspect there may be limits in Jet SQL that you've exceeded in your SQL, but your focus should be on finding a way to reorganise your project to avoid such a design - rather than to work out how to get beyond the limits. I hope that makes sense.
Aug 26 '11 #4
I just bought the book "Access 2000 Developer's Handbook" from Amazon. I should receive it sometime next week. It seems to be a good book, and hopefully will have some answers.

The query that I am trying to use is currently in use by many people, and I do not have the liberty to change the design of the database. It is a complex application, but the application does a host of different things.
Aug 27 '11 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Phil Powell | last post by:
<cfquery name="getAll" datasource="#request.dsn#"> SELECT U.userID, U.fname, U.lname, U.phone, U.lastLoggedIn, U.choiceId, U.experience, T.label AS teamLabel, R.label AS roleLabel FROM User U...
0
by: pj | last post by:
/* Make two tables, then find that a left join between them works, unless you add a view on top of one table -- if you add a view and use it, the left join fails -- rather, it acts as an inner join...
1
by: j.mandala | last post by:
I created a simple link between two tables in a query. TableA has Social Security numbers stored as Long Integer Data. (I imported this table). The Join is between these two fields Table ...
3
by: KEMDignam | last post by:
I have upgraded my computer to Access 2003, but I have not converted my databases since all of my clients still use Access 2000. I need to create a new MDB, but Access is telling me that I will...
9
by: Mike Bridge | last post by:
I am using MS Access 2003, and I typed in a query in SQL view which was working fine. Now when I open it, it gives me the error "Join expression not supported". Apparently, Access "fixed" it for...
0
by: com | last post by:
MS Access 2000 Password Recoverer 4.2 Screenshot - Soft30.com MS Access 2000 Password Recoverer will display the password to a MS Access database (*.mdb). This program works for MS Access files...
2
by: ILCSP | last post by:
Hello, I'm in the process of changing our 'normal' Access 2000 update queries to Update Pass Through Queries. We have a SQL server 2000 database and we're using an Access 2000 database as our...
15
by: Hexman | last post by:
Hello All, How do I limit the number of detail records selected in a Master-Detail set using SQL? I want to select all master records for a date, but only the first 3 records for the details...
3
by: pritampatil | last post by:
Hi All, I tried to run the attached query in MS-Access but its giving error "Join expression not supported" I am unable to find the cause of it till now, please try to find the same and help me. ...
3
by: Sheldon | last post by:
I have the following query expression - Like Format((!!)) & "/*/" & (! !) which would translate to e.g. 04/*/2007 if someone is running a report for last month. The above expression is part of a...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.