+ Reply to Thread
Results 1 to 2 of 2

Not a valid Name Problem

  1. #1
    Registered User
    Join Date
    02-25-2008
    Posts
    2

    Not a valid Name Problem

    Hi All,



    I'm currently building an Access 2003 database and I need to export the data into Excel 2003 in the form of pivot tables. I went into the data tab, created the query to pull from my database and selected create a pivot table report. The error that then pops up says " [microsoft][odbc microsoft access driver]" is not a valid name. Make sure that it does not contain invalid characters or punctuation and that it is not too long." I have no idea what to do as the data can be imported as the data it's self but not as a pivot table. I think the problem lies with the query pulling from two tables in Access. Anyway any assistance would be greatly appreciated.

    Kind Regards

    Bern

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello bernie,

    When using ADO with Excel, you need to set the library references needed for ADO the objects.

    Setting a Reference in VBA
    1. Open your workbook and then press ALT+F11 to open the VBE.
    2. Press ALT+T followed by the Enter key.
    3. Scroll down the list until you find Microsoft ActiveX Data Objects x.x Library.
    4. Press the Space bar to select it, and press Enter
    5. Press CTRL+S to save the reference in the project

    Sincerely,
    Leith Ross

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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