Results 1 to 3 of 3
  1. #1
    DocMyles is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1

    how do I create (or rename would be OK too) a Field whose name ends with a blank?

    (I'm a newbie here so please forgive me if I my posting inadvertently breaks a protocol...)

    I have a very unusual situation where I need the name of a field in an Access table to end with a blank (i.e. space). I tried doing it trivially while in Design View but no dice. I tried it through some SQL along the lines of the following pseudo code

    Select [old table].[Address] as [Address2 ], [old table].*
    Into [new table]
    From [old table]

    but the new field's name "Address2 " lost the final space.



    A third try was through some syntax for an Alter Table statement to add or modify a field. It didn't pan out.

    Any thoughts?

    Thanks, in advance, for any help.

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    one can add a space via syntax: & " "

    applied either during the user action in a form during data entry...or mass applied in an update query

  3. #3
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    I don't think you can do that; trailing spaces tend to mean nothing to Access.

    Why do you want the name to end with a space?

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

Similar Threads

  1. Copy/paste/rename a field in the same form?
    By Jamesiv1 in forum Access
    Replies: 5
    Last Post: 04-26-2014, 10:22 AM
  2. Replies: 3
    Last Post: 07-30-2013, 12:11 PM
  3. Replies: 1
    Last Post: 09-10-2012, 01:57 PM
  4. Replies: 4
    Last Post: 05-11-2011, 03:06 AM
  5. Replies: 2
    Last Post: 02-04-2010, 10:45 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