Solved

Automatic reading of database values

Posted on 1999-01-28
3
118 Views
Last Modified: 2010-05-03
I have a requirement to have multiple access to a database over a network.  The requirement also includes my VB5/6 application to constantly read the database for changes made by other systems on the network.

Is there anyway to be notified of changes to a database without having to constantly check the database contents using a timer?

If so, is there any code snippets available as I don't have a clue !
0
Comment
Question by:yermaw
3 Comments
 
LVL 4

Expert Comment

by:CraigLazar
ID: 1471135
Hi
So u have to see if anther application has accessed your access database ?
do u have to see or show if thath has happened , which record it was ?
Long shot but could u not use the windows api to tell you when the database was last modified. Keep track of thath value in a ini file and compare the dates and times .
just an idea

Craig
0
 

Author Comment

by:yermaw
ID: 1471136
Edited text of question
0
 
LVL 4

Accepted Solution

by:
arcusd earned 200 total points
ID: 1471137
how about trying this...

if your backend or database is an RDBMS , why not try to create a stored procedure
that will perform a certain event or message (ie display a message box) whenever a
the database was modified. Then from the server make a small app that will trap these messages . In this case you won't need to constantly check the database instead
the system will notify (thru yor app) that the database has been changed.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

772 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