• How to Automate Import process? (A2k (9.0.4402) SR-1)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » How to Automate Import process? (A2k (9.0.4402) SR-1)

    Author
    Topic
    #361264

    For support purposes, periodically I modem into my client

    Viewing 2 reply threads
    Author
    Replies
    • #545927

      It should be pretty straightforward to put a module in the Maintenance database (A) which imports all the objects in the Production database. However, without lots of clever VB, you will still have three manual steps as I see it:
      1 – Copy the Maintenance Database A (with explorer or a batch file)
      2 – Open the Duplicate Database B and run the code to import everthing from the Production Database C
      3 – Zip the Duplicate Database B – don’t know of anyway to automate this but don’t use zip tools all that often

      Hope this helps.

      • #546029

        Hi WendellB

        Thanks for your response, not too familiar with VBA code, can the following be done with macros?

        Can you point me to VBA code that might accomplish the following?

        How to Automate Import process?

        A2k (9.0.4402) SR-1

        For support purposes, periodically I modem into my client

        • #546088

          Yes, transfers can be done with macros or with VBA – the problem is that the TransferDatabase command requires you to specify the object you want to transfer. If you want to copy the entire database, then you have to specify each object if you use a macro. On the other hand, if you use VBA, it can sweep through the system table that enumerates the objects and transfer each of them. VBA is a much more robust solution.

          A recent thread explored this in some depth:
          http://www.wopr.com/cgi-bin/w3t/showflat.p…;o=0&fpart=

    • #545956

      Not that i’ve ever done it, but this looks to me like a case in which i would investigate Replication as a solution.

    • #546589

      Have you tried using the CompactDatabase function? This compacts a database into a second database. This not only solves your problem of getting everything into a second database, but eliminates the bloat as well.

    Viewing 2 reply threads
    Reply To: How to Automate Import process? (A2k (9.0.4402) SR-1)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: