Results 1 to 5 of 5
  1. #1
    mp3909 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    154

    Rename a field of a Query


    I have this query:

    Click image for larger version. 

Name:	Capture.PNG 
Views:	8 
Size:	25.1 KB 
ID:	37721

    When I click off the design view and see it as table, the 2nd column is called "Expr1".
    It is possible to rename it to something more meaningful?
    Attached Thumbnails Attached Thumbnails Capture1.jpg  

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,827
    yes - just replace with whatever name you require - avoid using spaces and non alpha numeric characters, reserved words or same name as existing fields in source

  3. #3
    mp3909 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    154
    Do you mean I can delete the word “Expr1” in the snapshot I had posted and write what I want as the name of the column? I tried doing that and it gave an error

  4. #4
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,696
    I tried doing that and it gave an error
    Be sure to include the colon. If the replacement contains a space put it in square brackets.

  5. #5
    mp3909 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    154
    cool, its working now.
    thanks!

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

Similar Threads

  1. Replies: 1
    Last Post: 08-13-2018, 03:17 PM
  2. Replies: 3
    Last Post: 07-13-2016, 08:21 PM
  3. Replies: 2
    Last Post: 03-20-2015, 09:45 AM
  4. VBA To Check If Query Exists If Does Rename
    By jo15765 in forum Macros
    Replies: 3
    Last Post: 07-28-2014, 02:25 PM
  5. Copy/paste/rename a field in the same form?
    By Jamesiv1 in forum Access
    Replies: 5
    Last Post: 04-26-2014, 10:22 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