Solved

Compile error in query expression

Posted on 2004-10-05
3
712 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
3 Comments
 
LVL 15

Accepted Solution

by:
will_scarlet7 earned 125 total points
Comment Utility
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
Comment Utility
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
Comment Utility
I was able to adjust the raw data before I have to work with it. Sorry for the late response.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Access query grid query 10 19
Sum Max help (Add 1 Month) 3 18
Dealing with Null in VBA sql statement 9 24
Access MDB/PDF 21 28
When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
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…

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now