• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 27. STARTUP CHECKING SYSTEM ROUT... > LINKING TABLES THROUGH VBA AND ADO

LINKING TABLES THROUGH VBA AND ADO

Section 4 of ap_AppInit is the same in both versions:

'-- Section 4: If the Data MDB is found in the App Directory,
         '--            link the files.

          If Dir(pstrAppPath & "\" & pstrBackEndName) = _
                       pstrBackEndName Then

             ap_LinkTables rstSharedTables, pstrAppPath & "\" & _
                            pstrBackEndName
             pstrBackEndPath = pstrAppPath & "\"

          Else

             '-- Section 5: Allow the user to locate the BackEnd MDB
             If Not ap_LocateBackend(rstSharedTables, _
                    strCurrError) Then
                flgLeaveApplication = True
             End If

          End If


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint