+ Reply to Thread
Results 1 to 4 of 4

Error for table names with spaces

  1. #1
    Valued Forum Contributor saravnepali's Avatar
    Join Date
    01-14-2019
    Location
    Sydney Australia
    MS-Off Ver
    2010
    Posts
    447

    Error for table names with spaces

    The following code works well when I use it for
    Please Login or Register  to view this content.
    However,
    Please Login or Register  to view this content.
    shows error when the name has spaces in DBname

    Any help to fix it will be appreciated.
    If you think someone helped you, click on the "* Add Reputation" as a way to say thank you.

    If your problem is solved, go to Thread Tools and select Mark This Thread Solved

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Error for table names with spaces

    I have no knowledge of Acces programming, but reading your question:

    Why not delete the space in the DB name and replace it in e.g. DB_name
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,302

    Re: Error for table names with spaces

    Adopt good practice - do not use spaces in any 'naming' process.
    If you want an apparent separation use underscore eg. name_name.

  4. #4
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: Error for table names with spaces

    Enclose the name in square brackets:

    Please Login or Register  to view this content.
    Rory

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Sheet Function - Spaces in Names
    By jomili in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-13-2019, 08:26 AM
  2. [SOLVED] Creating pivot table with tab names having spaces
    By bvwalker1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-15-2019, 12:31 PM
  3. [SOLVED] Trouble with Macro duplicating duplicate table names (Operator Error :))
    By Kogen in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-19-2018, 01:09 PM
  4. VBA code for directory names with spaces
    By donyc in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-24-2011, 01:30 PM
  5. Filling in names into spaces below
    By eonizuka in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-24-2009, 01:28 PM
  6. [SOLVED] I have spaces following names in my cell, how do I delete them?
    By LostandConfused in forum Excel General
    Replies: 2
    Last Post: 02-13-2006, 01:10 AM
  7. Replies: 1
    Last Post: 10-10-2005, 03:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1