Solved

Whay does my quesy show "Expr1000"?

Posted on 2015-02-09
5
488 Views
Last Modified: 2015-02-12
When I run my query, I see afield that says "Expr1000"

I put an image attached.
EXPR1000.jpg
0
Comment
Question by:cssc1
5 Comments
 
LVL 49

Accepted Solution

by:
Gustav Brock earned 250 total points
Comment Utility
Because one field is included more than once.

/gustav
0
 
LVL 18

Assisted Solution

by:SimonAdept
SimonAdept earned 250 total points
Comment Utility
It can mean you have used two columns with the same name in your output (e.g. if you picked 'Event' twice, either from the same table or two different tables) OR it can mean that you have a calculated column (e.g. [EventNo]-1) without specifying an alias for the calculated expression.

If the first is true, remove one of the duplicate columns from your output.
If the second is true, prefix the calculated expression with an alias, thus

MyColAlias:[EventNo]-1
0
 
LVL 30

Expert Comment

by:hnasr
Comment Utility
Adding: (Access 2010)

If you have a field a:

For a calculated field (a + 1), access defaults to Expr1, Expr2, ...
Aliases are reflected in design view and sql view.

When adding a field more than once, then previous entries' aliases default to Expr1000, Expr1001, ...
The aliases don't show in design or sql views
0
 

Author Closing Comment

by:cssc1
Comment Utility
Thanks
0
 
LVL 49

Expert Comment

by:Gustav Brock
Comment Utility
You are welcome!

/gustav
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
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…
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…

772 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

12 Experts available now in Live!

Get 1:1 Help Now