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

x
?
Solved

how to see original table name after alias in query

Posted on 2014-02-06
12
Medium Priority
?
2,796 Views
Last Modified: 2014-02-08
hey guys, in my queries i use aliases to name my tables / sub queries. i do this by going to the property pane (pressing F4) and then type in the name i want in the Alias field.

however sometimes i want to see which table / sub query i'm using in that query and i don't know what's the name by just looking at the alias. so i need to see the original table name.

Question: how do i see the original table / sub query name?

the only way i know how to do it is to go to SQL design mode and read from the SQL. surely there is a better way right? thanks in advance guys! = )
0
Comment
Question by:developingprogrammer
[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
  • 6
  • 2
  • 2
  • +1
12 Comments
 
LVL 39

Assisted Solution

by:PatHartman
PatHartman earned 400 total points
ID: 39841064
Nope.  Open the SQL view.
0
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 1096 total points
ID: 39841111
This is a way (see image below)
Turn on Object Dependencies on the Database Tools ribbon.
Open the Object Dependencies dialog.
Then, with the query opened or closed, select the query in the Navigation pane.
In the OD dialog,  select "Objects that I depend on"
This will show your actual Table

Alias
0
 
LVL 75
ID: 39841115
Important side note:
When you enable Object Dependencies, this turns on Name AutoCorrectOptions>> Track Name AutoCorrect info. However, there are some know issues with having NAC on - ESPECIALLY if Perform name AutoCorrect is also checked (bad, bad, bad, no no no). Fortunately, OD does not force this setting on.
Allen Browne lists the issues on his site.

So ... you may not want to leave this on indefinitely - especially if the db is deployed, because NAC Options are 'Current Database' options, and thus go WITH the db - where ever it may end up.

mx
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 52

Assisted Solution

by:Gustav Brock
Gustav Brock earned 504 total points
ID: 39841242
For that same reason I never use alias in Access SQL (except, of course, where they are a must).

/gustav
0
 
LVL 75
ID: 39841277
When is it a must ?
0
 
LVL 52

Assisted Solution

by:Gustav Brock
Gustav Brock earned 504 total points
ID: 39841282
When you link to the same table twice or to itself.

/gustav
0
 
LVL 75
ID: 39842650
:-)
0
 

Author Comment

by:developingprogrammer
ID: 39843591
whao Joe, i never knew about the object dependencies pane! it is really so so powerful! i can just think of so many ways it will help me / i can use it now = ))

thanks gustav for pointing out when to use Alias and thanks Pat too for your help and sharing! = )
0
 
LVL 75
ID: 39843619
Not a big deal, but ... I'm a tad confused. The answer
"Nope.  Open the SQL view."
... is well, just wrong :-(

mx
0
 

Author Comment

by:developingprogrammer
ID: 39843795
hrmm i think Pat was trying to say other than object dependencies, there is no way to see the full table name in the design window. the object dependencies window is kinda like a separate super charged thing ha = )
0
 
LVL 75
ID: 39843809
seems like a stretch.
Nope = No :-(
She made no mention of the OD window.
0
 
LVL 39

Expert Comment

by:PatHartman
ID: 39844294
You could also look in MSysQueries but I was under the impression the OP wanted something convenient.  I haven't spent any time analyzing the format of MSysQueries but it looks like Name1 is the table/query name and Name2 is the Alias.

You could create your own query/table cross reference without having to turn on name autocorrect by using MSysQueries.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
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…

604 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