+ Reply to Thread
Results 1 to 5 of 5

Column Name is Perplexing

  1. #1
    Forum Contributor
    Join Date
    02-25-2008
    Location
    Windsor, ON Canada
    MS-Off Ver
    Excel 2007, 2003
    Posts
    119

    Column Name is Perplexing

    On one of my queries, my column name is appearing as a reference to another query, then a period, and then the field name. Why is this?

    For example:

    In my query, I want to pull in "Color". The field "Color" is in another query called "Rainbow". Once run, the column name is showing up as:

    Rainbow.Color

    Any ideas?

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,888

    Re: Column Name is Perplexing

    What would you prefer the column name to appear as? If you wanted it to appear as your name for this forum you would type: 2709236:[Rainbow].[Color]
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor
    Join Date
    02-25-2008
    Location
    Windsor, ON Canada
    MS-Off Ver
    Excel 2007, 2003
    Posts
    119

    Re: Column Name is Perplexing

    The reason for my question is that it seems odd. I have another pull from the same query, in the same query, and instead of what I've indicated above, it only reads "Color" for the name. I'm getting an error in a query further down the line and I'm wondering if this is the reason? The error message says basically that "Access can't represent the join expression in design view" - that either the field is deleted (no), there is a misspelling (no) or the name has changed (maybe this one?).

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,888

    Re: Column Name is Perplexing

    You might have a corruption in the data base. Have you tried running a compact and repair?

  5. #5
    Registered User
    Join Date
    04-19-2010
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: Column Name is Perplexing

    Take a good look at your query, there is a chance that you have part of the rainbow query in the new query you are refrencing. If you have a color in 2 tables/queries and are using them both for a new query the provider won't know what one to look at because the computer can't assume that color is the same in both tables (even though they might be) the first part of the statment before the dot operator could be a refrence to the source it's pulling from.

    PEOPLE- ID, NAME, AGE
    FRIENDS- ID, NAME, AGE, FRIEND_OF

    If you want a list of all of someones friends, you will need to have 2 name columns in your resutls. Join FRIEND.FRIEND_OF to PEOPLE.ID, then you will have PEOPLE.NAME the other will be FRIENDS.NAME

    Can you post the whole SQL statment or some sample data of what you are trying to do?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1