?
Solved

ignore space between names within string

Posted on 2009-05-20
9
Medium Priority
?
483 Views
Last Modified: 2012-05-07
The code below does not like the space between Manufacturer and Name:
Manufacurer Name
If i remove the space in between, the code works fine.
Is there a way to handle this?
SELECT Benchmark_LessThanr50Percent.* INTO test1
FROM Benchmark_LessThanr50Percent, [SELECT Benchmark_LessThanr50Percent.Manufacturer Name, Sum(Benchmark_LessThanr50Percent.Spend) AS SumOfSpend
        FROM Benchmark_LessThanr50Percent
        GROUP BY Benchmark_LessThanr50Percent.Manufacturer Name
        HAVING (((Sum(Benchmark_LessThanr50Percent.Spend))>100))]. AS Benchmark1
WHERE (((Benchmark_LessThanr50Percent.Manufacturer Name)=[Benchmark1].[Manufacturer Name]));

Open in new window

0
Comment
Question by:karinos57
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
9 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 1000 total points
ID: 24434095
enclosed it with square brackets []

[Manufacturer Name]
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 24434113
copy and Paste this

SELECT Benchmark_LessThanr50Percent.* INTO test1
FROM Benchmark_LessThanr50Percent, (SELECT Benchmark_LessThanr50Percent.[Manufacturer Name], Sum(Benchmark_LessThanr50Percent.Spend) AS SumOfSpend
        FROM Benchmark_LessThanr50Percent
        GROUP BY Benchmark_LessThanr50Percent.[Manufacturer Name]
        HAVING (((Sum(Benchmark_LessThanr50Percent.Spend))>100))) AS Benchmark1
WHERE (((Benchmark_LessThanr50Percent.[Manufacturer Name])=[Benchmark1].[Manufacturer Name]));
0
 

Author Comment

by:karinos57
ID: 24434142
i am getting input message box which reads like "Enter Prameter Value"
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 24434187
karinos57,
seen my second post?
0
 
LVL 1

Expert Comment

by:mcfitz13
ID: 24434853
Yeah that should do it.
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 24503496
karinos57,

wondering why you have to accept a comment like that as the solution to your problem..
0
 
LVL 1

Expert Comment

by:mcfitz13
ID: 24503521
I agree.... I don't deserve anything.
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question