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 7982693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:44:52+00:00 2026-06-04T10:44:52+00:00

disclaimer: I must use a microsoft access database and I cannot connect my app

  • 0

disclaimer: I must use a microsoft access database and I cannot connect my app to a server to subscribe to any service.

I am using VB.net to create a WPF application. I am populating a listview based on records from an access database which I query one time when the application loads and I fill a dataset. I then use LINQ to dataset to display data to the user depending on filters and whatnot.

However.. the access table is modified many times throughout the day which means the user will have “old data” as the day progresses if they do not reload the application. Is there a way to connect the access database to the VB.net application such that it can raise an event when a record is added, removed, or modified in the database? I am fine with any code required IN the event handler.. I just need to figure out a way to trigger a vb.net application event from the access table.

Think of what I am trying to do as viewing real-time edits to a database table, but within the application.. any help is MUCH appreciated and let me know if you require any clarification – I just need a general direction and I am happy to research more.

My solution idea:

  • Create audit table for ms access change
  • Create separate worker thread within the users application to query
    the audit table for changes every 60 seconds
  • if changes are found it will modify the affected dataset records
  • Raise event on dataset record update to refresh any affected
    objects/properties
  • 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-04T10:44:53+00:00Added an answer on June 4, 2026 at 10:44 am

    Couple of ways to do what you want, but you are basically right in your process.

    As far as I know, there is no direct way to get events from the database drivers to let you know that something changed, so polling is the only solution.

    • I the MS Access database is an Access 2010 ACCDB database, and you are using the ACE drivers for it (if Access is not installed on the machine where the app is running) you can use the new data macro triggers to record changes to the tables in the database automatically to an audit table that would record new inserts of updates, deletes, etc as needed.
      This approach is the best since these happen at the ACE database driver level, so they will be as efficient as possible and transparent.

    • If you are using older versions of Access, then you will have to implement the auditing yourself. Allen Browne has a good article on that. A bit of search will bring other solutions as well.

    • You can also just run some query on the tables you need to monitor

    In any case, you will need to monitor your audit or data table as you mentioned.
    You can monitor for changes much frequently than 60s, depending on the load on the database, number of clients, etc, you could easily check ever few seconds.

    I would recommend though that you:

    • Keep a permanent connection to the database while your app is running: open a dummy table for reading, and don’t close it until you shutdown your app. This has no performance cost to anyone, but it will ensure that the expensive lock file creation is done only once, and not for every query you run. This can have a huge performance import. See this article for more information on why.

    • Make it easy for your audit table (or for your data table) to be monitored: include a timestamp column that records when a record was created and last modified. This makes checking for changes very quick and efficient: you just need to check if the most recent record modified date matches the last one you read.
      With Access 2010, it’s easy to add the trigger to do that. With older versions, you’ll need to do that at the level of the form.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Disclaimer: this is not a question about how to install asp.net or an application
I am using iText to populate a pdf form using data from our database.
DISCLAIMER: Don't use ::feof() as your loop condition. For example, see the answer to:
Disclaimer: I am living at some place where my net connection gets cut off
Disclaimer: I'm very new to Django. I must say that so far I really
[Disclaimer]: Currently we are running older SQL Server 2000, but we could update to
Disclaimer I feel like this is a fairly simple question, so i must reiterate
Disclaimer: I'm sure this has been answered before but I cannot find anything on
(DISCLAIMER: I'm not a programmer, I spend my time on serverfault, I'm just a
Disclaimer: This is my first time writing unit tests...be gentle! :) I am trying

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.