Results 1 to 4 of 4
  1. #1
    R_Sam is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2016
    Location
    United Kingdom
    Posts
    2

    Rename columns in Access SQL

    Hi,

    I have a list box which is linked to a query. How can I manipulate the underlying SQL to change the column names so they display in a meaningful way?



    Thanks in anticipation of any help.

    Rob

  2. #2
    Minty is offline VIP
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,001
    In your query you can use an alias so something like

    Select YourField1 As 'Better Visual Name' , YourField2 as 'Nice Name Two' etc etc
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  3. #3
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,737
    You can also hide the listbox column headers and use your own labels above the columns.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,397
    if using a query you can use the field or column caption property (OK, not manipulating sql, but achieves the same thing)

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

Similar Threads

  1. Use VBA to Rename a Default Ribbon Tab in Access 2016
    By jeffreymiller in forum Programming
    Replies: 1
    Last Post: 11-18-2016, 08:43 AM
  2. Find and rename objects in Access 2016
    By exbrat in forum Database Design
    Replies: 1
    Last Post: 03-08-2016, 08:50 AM
  3. using macro to rename column values in Access
    By coolbear91 in forum Programming
    Replies: 1
    Last Post: 02-20-2013, 11:10 PM
  4. Replies: 4
    Last Post: 10-30-2012, 02:54 PM
  5. Have access rename a .txt file and move it
    By dh010010 in forum Programming
    Replies: 5
    Last Post: 07-22-2010, 10:49 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