Solved

Compile error in query expression

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

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help writing a query 6 72
DSum for Access 6 46
data analyst 3 50
ms/access webbrowser address not valid  - 12 32
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

920 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

15 Experts available now in Live!

Get 1:1 Help Now