Solved

ignore space between names within string

Posted on 2009-05-20
9
479 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 250 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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

707 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