Results 1 to 9 of 9
  1. #1
    coilerDH is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Dec 2014
    Posts
    13

    why is Expr1: [name] showing up in the field of my query

    In the query design view I have some fields. Some of them are yes/no. But one says this, Expr1: [Inactive] in the field name. Its the only one that does that. "Inactive" is a yes/no and is a check box. Whats happening?
    Thanks

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    That is a default done by Access. If you want a different name, just add it to the query grid, or as an alias in the sql view of the query.

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    Is the same field pulled into the query grid twice? Post the SQL statement of the query.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    coilerDH is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Dec 2014
    Posts
    13
    Its only listed once. I just noticed that if I use the query wizard, the "Inactive" field shows up normally.

  5. #5
    coilerDH is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Dec 2014
    Posts
    13
    I created a test query to post. Bolth are yes/no, added the same way.

    SELECT [dbo_Client Table].[Inactive] AS Expr1, [dbo_Client Table].Archive
    FROM [dbo_Client Table];

    Why is the "inactive" doing that?

    This test query done with the wizard
    SELECT [dbo_Client Table].[Inactive ], [dbo_Client Table].[Archive], [dbo_Client Table].[DNQ]
    FROM [dbo_Client Table];

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    ??? Don't have a direct answer.
    But you can do this (remove the As Expr1)
    Code:
    SELECT [dbo_Client Table].[Inactive], [dbo_Client Table].Archive
    FROM [dbo_Client Table];

  7. #7
    coilerDH is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Dec 2014
    Posts
    13
    Already tried to remove it. Doesn't save.

  8. #8
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    Then you must have Inactive used somewhere else. Or at least Access thinks you have.

  9. #9
    coilerDH is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Dec 2014
    Posts
    13
    Thanks for responding. I m going to recreate the query using the wizard.

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

Similar Threads

  1. Replies: 1
    Last Post: 06-06-2014, 09:34 AM
  2. Replies: 3
    Last Post: 04-23-2014, 08:22 PM
  3. Query showing name field when "Total" field is zero
    By Gabriel2012 in forum Queries
    Replies: 3
    Last Post: 04-02-2013, 12:50 PM
  4. update query not showing 1 field out of 4
    By live2ride in forum Queries
    Replies: 2
    Last Post: 11-01-2012, 02:19 PM
  5. Replies: 1
    Last Post: 09-25-2012, 03:58 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