How to write an Access program that update a text tab file created from Access query

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Geni55
    New Member
    • Apr 2012
    • 5

    How to write an Access program that update a text tab file created from Access query

    Hello, I have created a database with a query table exported as text tab to be used in another program. How can I create a program that would allow the text tab (from Access query table) to be updated every time data are entered in forms?
    My text tab were created from exporting query table.
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    Reexport the table every time data is entered in the form. But that is a horribly inefficient way of controlling data flow. Why do you even need to do this? And what is this other program you mentioned?

    Comment

    • Geni55
      New Member
      • Apr 2012
      • 5

      #3
      I am using Corvid Exsys and expert system software which can ready only text tab file. I would like this text tab file be updated anytime data are entered in the databse.

      Comment

      • Rabbit
        Recognized Expert MVP
        • Jan 2007
        • 12517

        #4
        Well then you'll have to set up VBA or a macro to export it whenever the data is changed.

        Comment

        • Geni55
          New Member
          • Apr 2012
          • 5

          #5
          Thank you Rabbit. That where I need help to do so. Could you please give me some help or indicate where I can get it?

          Comment

          • Rabbit
            Recognized Expert MVP
            • Jan 2007
            • 12517

            #6
            If you're saying you don't know VBA or macros, there are a lot of tutorials out there that will help you get started.

            If you're saying you know VBA or macros, but don't know how to implement the specific task, then we need to know a lot more detail than what you've provided. For example, we would need to know what event you want to trigger and the code you've tried and any errors that the code evoked.

            Comment

            • Geni55
              New Member
              • Apr 2012
              • 5

              #7
              Thank you very much for your willing to help. I really do not know how to use VBA. I know what I would like to do, but I do not know how to do it. I need help.

              Comment

              • Rabbit
                Recognized Expert MVP
                • Jan 2007
                • 12517

                #8
                This tutorial will get you started on learning VBA.

                Comment

                • Geni55
                  New Member
                  • Apr 2012
                  • 5

                  #9
                  I thank you for the tutorial. It has 28 lessons to learn. Please could you be more specific on the lesson that can be learned and applied to my specific question?

                  Comment

                  • Rabbit
                    Recognized Expert MVP
                    • Jan 2007
                    • 12517

                    #10
                    You'll probably want to look through at least the first 18 lessons. That will give you the basics of VBA. Once you know the basics, you'll be able to plan out how you want to trigger the code and what events you want to use. But the meat of the work will be done using the DoCmd.TransferT ext method. You will probably have to create a spec file for that.

                    Comment

                    Working...