Results 1 to 4 of 4
  1. #1
    btappan is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    43

    column alias name with special characters?

    First of all I know this is bad practice. It is not my choice to use this, I am forced to because a 3rd party app I need to use requires it in csv files I submit to it. If we could skip all the formalities on why it's wrong, that'd be great. I'm just looking for a way around this.

    I have a field named discountprice that I need to apply a column name alias to in a query that has a colon in the middle of it like price:level2

    Obviously using price:level2: discountprice in the query builder doesn't work. I was already told to try it in sql view like "discountprice AS price:level2:"and that works, but only until you try to save the query, then it causes an error.

    Does anybody have anyway to make it work?

  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,641
    Untested, but have you tried bracketing the alias?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    btappan is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    43
    Yes, bracketing is unsuccessful as well. Thanks though.

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    If there is not another way then you will probably have to edit the CSV file after it is created.

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

Similar Threads

  1. Replies: 6
    Last Post: 12-11-2013, 09:54 PM
  2. Search for special characters
    By davej311 in forum Queries
    Replies: 3
    Last Post: 11-20-2013, 02:35 PM
  3. Need to delete special characters
    By tlrutledge in forum Queries
    Replies: 1
    Last Post: 08-23-2013, 03:10 AM
  4. Special characters in Default Value and Query
    By blacksaibot in forum Queries
    Replies: 1
    Last Post: 03-07-2012, 10:36 AM
  5. Special Characters
    By orgelizer in forum Access
    Replies: 0
    Last Post: 03-20-2007, 08:24 PM

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