Results 1 to 5 of 5
  1. #1
    phunction is offline Novice
    Windows 10 Access 2016
    Join Date
    Nov 2018
    Posts
    3

    Question Insert or Update column with stupid names

    Hi, I have a database that I need to run an SQL query insert/update on, the problem is that the columns are actually named VALUE and PERCENT, Access complains about a syntax error anytime I try to do anything with this table, how do I run a query against it?



    Thanks

  2. #2
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,741
    Try putting square brackets around the problem names, e.g. [VALUE]

  3. #3
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,932
    better still, change the column names to ones that are more meaningful in context - e.g. SaleValue, PCofTotal, whatever

  4. #4
    phunction is offline Novice
    Windows 10 Access 2016
    Join Date
    Nov 2018
    Posts
    3
    Quote Originally Posted by davegri View Post
    Try putting square brackets around the problem names, e.g. [VALUE]
    Ahh yes, I totally forgot about those, thanks.

  5. #5
    phunction is offline Novice
    Windows 10 Access 2016
    Join Date
    Nov 2018
    Posts
    3
    Normally yes, but it was designed by someone else and I can't change it as all I do is update the data for them and they won't make the change.

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

Similar Threads

  1. Replies: 4
    Last Post: 11-29-2017, 10:01 AM
  2. Replies: 8
    Last Post: 07-10-2014, 09:44 AM
  3. Replies: 1
    Last Post: 11-12-2013, 02:19 AM
  4. Query Entity Names, and Column Names
    By Accidental DBA in forum Queries
    Replies: 1
    Last Post: 07-22-2011, 02:38 PM
  5. Replies: 5
    Last Post: 04-24-2011, 03:14 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