Results 1 to 9 of 9
  1. #1
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664

    What is this entry?

    In the attached file is a db with Query3. I am curious since I used Query2 and a table to make Query3, why did I get Exprs001 in one of the entries in Query3, as it relates to Query2?

    I do not see it in Query2. So it must have been created when I created Query3.

    How did it get there?



    Respectfully,

    Lou Reed
    Attached Files Attached Files

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    You have the first name field twice; it aliases the second instance of it.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    Okay, thanks I will make the correction.

    Respectfully,

    Lou Reed

  4. #4
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    When I opened up the db file and then Query3, first name entry was there twice with no alias. I then downloaded the file that I attached in post #1 and unzipped it and opened the db up, and went to query3. Again the first name entry was there twice with no alias. So what happened to the alias? We know that it is there. I knew it was in query3 when I zipped and uploaded the db. What happened to it? Did it change back into first name field somewhere along the way.

    Please understand that I am quite serious and although the tone of the post may sound like I am joking. I am not where did the alias go?

    Seriously.

    Any help appreciated. Thanks in advance.

    Respectfully,


    Lou Reed

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I'm not at my computer, but wasn't it in query2?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  6. #6
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    Code:
    In the attached file is a db with Query3. I am curious since I used Query2 and a table to make Query3, why did I get Exprs001 in one of the entries in Query3, as it relates to Query2?
    
     I do not see it in Query2. So it must have been created when I created Query3.
    
     How did it get there?
    Here is the original explanation. Query2 was used to create Quer3. Thus one could say if one wanted to that it was in both queries. No matter,
    Exprs001 is in neither query now. That is my question. It changed from Exprs001 back to FirstName. That is okay. The modified query now has
    only one FirstName entry. That is my question, again. What happened to Exprs001, did it change back to FirstName? It must have. If it did then the purpose of the question is moot.

    I saw something that I could not identify in my design view of the query and now it is gone. Whathe double hockey sticks going on?

    This was clearly unexpected.

    Any help appreciated. Thanks in advance.

    Respectfully,

    Lou Reed

  7. #7
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    The cause of the problem was in query2; the alias can be seen in the field list of query2 when viewing query3 in design view. You can start a query and add a field twice and it won't be aliased until you run the query and Access realizes you've got the same field twice. Once you delete the second instance, you will no longer see the alias.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  8. #8
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    Okay, thanks for your input. It was very helpful. It is just one those annoying you see in MS Access 2010 that just makes you wonder where did that come from?

    I understand your explanation. I think the best idea is to not make double entries. Again, thanks for your input.

    Respectfully,

    Lou Reed

  9. #9
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    No problem Lou.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 12-21-2015, 10:57 PM
  2. Replies: 5
    Last Post: 03-09-2014, 07:16 PM
  3. how to copy last entry data for new entry
    By alexandervj in forum Access
    Replies: 7
    Last Post: 11-13-2013, 02:57 PM
  4. Replies: 2
    Last Post: 05-20-2013, 05:23 PM
  5. Replies: 6
    Last Post: 09-27-2012, 08:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums