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

I can't save this query

SELECT Service.Name As AtlasProductName,
IIf(Service.Name Like "1004*", "1004/URAR",
IIf(Service.Name Like "2055E CompPhots&Land", "2055 Ext w/Comp Pics",
IIf(Service.Name Like "2055I CompPhots&Land", "2055 Int w/Comp Pics",
IIf(Service.Name Like "2075 Property Insp", "2075 Exterior",
IIf(Service.Name Like "Final Inspection", "442 Completion Cert",
IIf(Service.Name Like "704B No Comp Photos", "704 D/B no comp photos",
IIf(Service.Name Like "704B w/Comp Photos", "704 D/B w/comp photos",
IIf(Service.Name Like "*Desk Review", "Desk Review",
IIf(Service.Name Like "FHA 1004", "FHA - 1 Unit",
IIf(Service.Name Like "2000 Field Review", "FRR - Field Review",
Service.Name)))))))))) As CombinedProductName
FROM (VendorServiceOrder INNER JOIN (ProductOrder INNER JOIN ((Product
INNER JOIN ProductCategory ON Product.ProductCategoryID =
ProductCategory.ProductCategoryID) INNER JOIN ProductGroup ON
ProductCategory.ProductGroupID = ProductGroup.ProductGroupID) ON
ProductOrder.ProductID = Product.ProductID) ON
VendorServiceOrder.ProductOrderID = ProductOrder.ProductOrderID) INNER
JOIN Service ON VendorServiceOrder.ServiceID = Service.ServiceID
WHERE (((ProductGroup.Name) Like "ap*"));

When I try to save this query, Access shuts down and the query is not
saved. All tables and names are valid and joined correctly.

Jun 14 '06 #1
1 2086
AP
I believe you have too many nested IIFs, I believe there is a limit of
7. You may want to create a user function using and use a select case
statement to join the values and return the appropriate string.

Jun 14 '06 #2

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

Similar topics

6
by: tracy | last post by:
I have a complex query (16 table join) that until five days ago took 30 sec to run. It now takes eight hours. I restored a backup of the database from five days ago and the query plans are...
3
by: dixie | last post by:
I have a form full of subforms which bring summary information onto the form from about 12 different tables. I am trying to get all of that summary information (mainly numbers) into 1 large table...
7
by: Megan | last post by:
Hi everybody- I inherited a database that somehow uses a bound combo box as a record selector. Let me give you some background. The form is based on data from 2 tables. The first table, Person,...
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...
1
by: DFS | last post by:
I'm using a query as the SourceObject for a subform. When I change any of the column widths and try to close the form I'm prompted to save changes to the layout. Anyone know how to suppress...
1
by: peter | last post by:
Dear all, I have an existing query called 'A', but I want it to view in Pivot Table. What I do is : - Double click the query and choose Pivot Table view. - I make some changes by adding some...
3
by: Alex Resnik | last post by:
Hi, When I build a new query the program will not let me save it -the save button is not selectable. This happens when I click on my table in Server Exporer. Click New Query and the Query Window...
2
by: awu | last post by:
All: I have a query that has 5 fields and around 15500 records. I need to save it to a excel file that has two sheets. First sheet saves all the 15500 records. Second sheet saves around 7500...
1
by: eighthman11 | last post by:
Hello everyone. I have a table linked to an excel spreadsheet. I have an append query based on this link table. I receive an error when I run the append query "numeric field overflow". I have...
1
by: kiranbabu | last post by:
<html> <head> <style type="text/css"> h2{color:#A02820} </style> </head> <script language=javascript>
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.