Solved

Delphi Capture table changes

Posted on 2012-03-27
5
319 Views
Last Modified: 2012-05-18
I have application written in Delphi 6. The application works with Local Access table. I need to know Immediately when this table has a new record (the record is being added from different application). Right now I am working with 3 seconds timer that count the records. Is there any other way to do it without this timer ?

Thanks & regards.
0
Comment
Question by:oferlll
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 37

Accepted Solution

by:
Geert Gruwez earned 500 total points
ID: 37771123
no, you are using the best approach
0
 
LVL 37

Expert Comment

by:Geert Gruwez
ID: 37771139
for short, you are limited by the database you are using

>> with oracle, you can register to get events immediately upon change
DBMS_ALERT sample:
http://docs.oracle.com/cd/B19306_01/appdev.102/b14258/d_alert.htm#CHDHACEG

access does not have this capability
0
 
LVL 37

Assisted Solution

by:Geert Gruwez
Geert Gruwez earned 500 total points
ID: 37771147
but,
i would add a DATE/TIME Modified column

counting records will not show you the latest record modified

SELECT MAX(DT_MODIFIED) FROM TABLE

gives you the latest change time > store this and run again to check any changes
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question