Results 1 to 2 of 2
  1. #1
    PATRICK is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2011
    Posts
    32

    LInked tabled refreshed growing mdb file

    I have tables from MySQL linked in my front end. Before all the tables was linked by ODBC and now I am refreshing the link because I don't want to create the ODBC on every machine client, but now every time I run the application I call the string for MySQL connection and relink but it started grow my mdb file. Is there anything I can do about ? the code im using is: Dim tdf As DAO.TableDef
    Dim tblname As String
    For Each tdf In CurrentDb.TableDefs


    If Len(tdf.Connect) > 0 Then
    tblname = tdf.NAME
    DoCmd.Echo True, "Relinking Table " & tblname
    tdf.Connect = "STRINGCONNECTION" & dbname
    tdf.RefreshLink
    End If
    Next tdf

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    no, there isn't. But as side note, your database will get bloated over time regardless of what you do. It's a shortcoming of MS Access. You will have to regularly compact/repair the front end of your database. MS Access 2007 and up also have the option to "Compact on Close" for each individual database which you might want to consider enacting so you don't have to put any other effort into maintaining your db.

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

Similar Threads

  1. Replies: 2
    Last Post: 12-27-2012, 09:37 AM
  2. Replies: 3
    Last Post: 09-14-2012, 04:10 PM
  3. Refreshing subform when form refreshed
    By Remster in forum Forms
    Replies: 27
    Last Post: 10-15-2010, 09:39 AM
  4. Multiple Tabled DB 1 form for entry
    By kevin007 in forum Forms
    Replies: 3
    Last Post: 08-02-2010, 10:02 AM
  5. Data base is growing in size
    By shahemaan in forum Access
    Replies: 11
    Last Post: 12-18-2009, 07:16 PM

Tags for this Thread

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