+ 2

I want To configure a listerner to listen record updated, deleted and inserted in my access database.

Hi. I am worried since. I have an idea but i don't know it is possible To realised it. I want To configure a listerner to listen record updated, deleted and inserted in my access database. I dont know how to do it. But i heard it is possible with other database. Thanks for any idea.

3rd Mar 2018, 9:54 AM
ABDOUL RAHIM NDANE PECHOU
ABDOUL RAHIM NDANE PECHOU - avatar
7 Respostas
+ 2
Can you give a example of listener ? I have not heard if this
3rd Mar 2018, 1:24 PM
sneeze
sneeze - avatar
+ 2
Thank you. Nice idea. Although if you have a choice to design the database. I would choose a sql-database. You can connect to a access database using a sqlconnection and oledb. (Connection string : Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\myFolder\myAccessFile.mdb; Persist Security Info=False;) In google I have not seen any post about sql dependcy being used with ms access. I believe it is not possible due to the fact that you have to set ALTER DATABASE test SET ENABLE_BROKER which enables the listener to listen to events in the database You can however do it your self. If you have all the code accessing the database. Just add log-function to every event It also can be done with the access database I have seen many post about Data Macros audit trail microsoft access They seem to run macros on a after-update event and write the results to an extra table. I haven't worked with it. I was just curious to see if it could be done.
3rd Mar 2018, 9:34 PM
sneeze
sneeze - avatar
+ 1
a listerner is just like notepad which register all events occurring on your database such as uodate, new record and delete
3rd Mar 2018, 4:40 PM
ABDOUL RAHIM NDANE PECHOU
ABDOUL RAHIM NDANE PECHOU - avatar
+ 1
Sqldependency and the Sqlnotification handler
3rd Mar 2018, 4:40 PM
ABDOUL RAHIM NDANE PECHOU
ABDOUL RAHIM NDANE PECHOU - avatar
+ 1
can you give me the link To the post where toi saw it please.
3rd Mar 2018, 9:54 PM
ABDOUL RAHIM NDANE PECHOU
ABDOUL RAHIM NDANE PECHOU - avatar
+ 1
Ok thank sneeze
4th Mar 2018, 6:17 AM
ABDOUL RAHIM NDANE PECHOU
ABDOUL RAHIM NDANE PECHOU - avatar