I took your advice and am still having the same problem, i.e. my subquery has
a syntax error. This is where I am thus far:
Base: (SELECT [Small Busiiness Activity Detail].[Spent] WHERE [Small
Business Activity Detail].[Minority Indicator Categories] = "sb" or "lb")
Any help would be greatly appreciated.
Rob
> Looking at your query i see a lot of spaces in the table and fieldname. Try
> placing your tablename and fieldname between [ ] then try again.
[quoted text clipped - 14 lines]
> >
> > Rob
> I took your advice and am still having the same problem, i.e. my subquery has
> a syntax error. This is where I am thus far:
[quoted text clipped - 5 lines]
>
> Rob
Rob,
Your second subquery has no FROM clause. It won't work without one.
Try:
Base: (SELECT [Small Busiiness Activity Detail].[Spent] FROM [Small Business
Activity Detail] WHERE [Small Business Activity Detail].[Minority Indicator Categories] =
"sb" or "lb")
Your first subquery in your original post:
Base: (SELECT Small Busiiness Activity Detail.Spent FROM Small Business
Activity Detail WHERE Minority Indicator Categories = "sb" or "lb")
Did have a FROM clause.
As far as I can tell, you corrected one error, a lack of [], and then accidentally deleted
the FROM clause in the process.
I also notice that Business appears to be misspelled as Busiiness in both subqueries, and
if that is a misspelling, that will also cause and error.
Comments:
Avoid spaces or special characters in the names of tables, columns, forms, controls,
reports, and modules.
Sincerely,
Chris O.
Douglas J. Steele - 18 Jul 2007 02:49 GMT
>> I took your advice and am still having the same problem, i.e. my subquery
>> has
[quoted text clipped - 14 lines]
> Indicator Categories] =
> "sb" or "lb")
Your use of "or" is incorrect. It needs to be either
Base: (SELECT [Small Busiiness Activity Detail].[Spent] FROM [Small Business
Activity Detail] WHERE [Small Business Activity Detail].[Minority Indicator
Categories] =
"sb" or [Small Business Activity Detail].[Minority Indicator Categories] =
"lb")
or
Base: (SELECT [Small Busiiness Activity Detail].[Spent] FROM [Small Business
Activity Detail] WHERE [Small Business Activity Detail].[Minority Indicator
Categories] IN ("sb" or "lb"))

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)