Solved

Compile error in query expression

Posted on 2004-10-05
3
716 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 125 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

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
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.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

726 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