Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Compile error in query expression

Posted on 2004-10-05
3
Medium Priority
?
726 Views
Last Modified: 2012-05-05
Hi,
I get a compile error when trying to execute this query:
SELECT Mid([Location Name],10,4) AS Branch
FROM Receives;
The [Location Name] = US BANK #0585 WRIGLEY BUILDING
Let me know what it can be.
Thank you
0
Comment
Question by:lnchopo
[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
3 Comments
 
LVL 15

Accepted Solution

by:
will_scarlet7 earned 375 total points
ID: 12226664
Hi lnchopo,
There does not seem to be anything wrong with your query statement. Is it possible that your table actually stores the Location ID # in [Location Name] instead of the text name of the Location, and it is using a lookup to ge the text name?

Sam
0
 
LVL 1

Expert Comment

by:tiffanyhale
ID: 12250434
I tried to duplicate your error, however the query works fine.  

Are you getting the error when you run a query or are you running code using the SQL statement to produce the results?
0
 

Author Comment

by:lnchopo
ID: 12276789
I was able to adjust the raw data before I have to work with it. Sorry for the late response.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

610 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