Results 1 to 5 of 5
  1. #1
    RandV is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Mar 2013
    Posts
    12

    Need to update ODBC table with too many indexes


    If I can't add a linked ODBC table in Access because it fails due to too many indexes, would I be able to open it in the VB code to run an update query on it? I'm still learning how to use the DAO classes in Access, but it seems like all the tutorials I find start with a table that's already been linked which I don't have here. I was hoping I could maybe get around the error by not linking it and just opening it in VB, but not sure what the code would be when the link isn't already there. Also I can get the data I need from this table via a pass-through query and applying a filter to limit the results, but I don't believe I can run an update query on that.

    Of course an obvious answer would be to start deleting indexes, but I haven't determined if that's an option yet so I want to try working around that first. Any help would be appreciated, thanks.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Must establish a connection to the database to be able to open a recordset of the table. What is the database - SQL, Oracle, dBase?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Access_Blaster is offline User
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2010
    Posts
    339
    Quote Originally Posted by RandV View Post
    Need to update ODBC table with too many indexes

    Of course an obvious answer would be to start deleting indexes, but I haven't determined if that's an option yet so I want to try working around that first. Any help would be appreciated, thanks.
    I think you answered your own question. How many indexes do you have? You should index fields you intend to search on or fields you may need to restrict dupes. But not all fields need to be indexed it will surely slow your database down.

  4. #4
    RandV is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Mar 2013
    Posts
    12
    It's an SQL database. I'm aiming to create an automation tool for some 3rd party software, so I was hoping I could resolve this all in Access without messing around in there.

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Bing: Access VBA connect to sql server

    Does this help: https://social.msdn.microsoft.com/Fo...forum=exceldev

    However, too many indexes still might be an issue.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Indexes in a Table
    By FB93 in forum Access
    Replies: 2
    Last Post: 03-18-2014, 07:27 PM
  2. ODBC Error 3146 on rs.update
    By sharon.chapman7 in forum Programming
    Replies: 6
    Last Post: 03-06-2012, 08:45 AM
  3. Too Many Indexes
    By cbrsix in forum Database Design
    Replies: 22
    Last Post: 11-07-2011, 11:12 AM
  4. Replies: 0
    Last Post: 11-30-2010, 12:23 PM
  5. Table Indexes
    By AnthonyT in forum Access
    Replies: 3
    Last Post: 06-04-2009, 06:16 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