Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8510341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:40:38+00:00 2026-06-11T03:40:38+00:00

I am trying to create a macro that when a table is changed it

  • 0

I am trying to create a macro that when a table is changed it will create a simple text file to a chosen path. I have been programming in VB.NET but access is in vba, I have been doing some research and think I can do it. However access macro writer confuses me if the boxes you insert your code in to. Is there a way to make one in VB.NET or use Visual Studio that access would be able to use?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T03:40:40+00:00Added an answer on June 11, 2026 at 3:40 am

    In this case, I think you should take advantage of data macros. These will run even if the table is used outside of MS Access. For example:

    enter image description here

    Alternatively

    Sub LogThis(strText)
    Const ForAppending = 8
    Dim sPath As String
    Dim fs As Object
    Dim ts As Object
    
        sPath = CurrentProject.Path
    
        Set fs = CreateObject("Scripting.FileSystemObject")
        If fs.FileExists(sPath & "\Log.txt") = True Then
            Set ts = fs.OpenTextFile(sPath & "\Log.txt", ForAppending)
        Else
            Set ts = fs.CreateTextFile(sPath & "\Log.txt")
        End If
        ts.WriteLine Now & " " & strText
        ts.Close
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

ok so im trying to create a macro that will take my set cells
I'm trying (as a self-learning exercise) to create a Clojure macro that will generate
I am trying to create a macro that will regularly move 25,000 - 35,000
I'm trying to create a new macro that takes the currently selected text and
I am trying to create a macro that will auto close and save an
I'm trying to create a Macro in Excel 2007 that will delete itself when
I am trying to create a macro that brings in the name of the
I am trying to create a Macro that either runs on close or on
I'm trying to create a macro that selects most of the sheets in the
I am trying to create a Word document with a very simple word macro.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.