Results 1 to 2 of 2

Thread: Moving Split Section of Access 97 DB

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 1999
    Location
    Milford, NH
    Posts
    15
    I split an Access 97 database. Then I needed to move the data section. How can I get the two halves in sync again?
    Get an error can not find data.

  2. #2
    Lively Member
    Join Date
    Dec 1999
    Location
    Karlsruhe, Germany
    Posts
    122
    Hi,

    call this proc with the name of the new database (works only with linked Access tables, no .dbf's etc.):

    Code:
    Sub Actual(DBName As String)
        Dim dbCurr As Database
        Dim tdfTab As TableDef
        
        Set dbCurr = CurrentDb
        
        For Each tdfTab In dbCurr.TableDefs    
            If tdfTab.Connect <> "" Then
                DoCmd.Rename tdfTab.Name & "_sik", acTable, tdfTab.Name
                DoCmd.TransferDatabase acLink, "Microsoft Access", DBName, acTable, tdfTab.Name, tdfTab.Name
                DoCmd.DeleteObject acTable, tdfTab.Name & "_sik"
            End If
        Next tdfTab
    
    End Sub
    Roger

Posting Permissions

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



Click Here to Expand Forum to Full Width