I am working in a multiuser VB 6 Project with MS Access as database.
I want to store details in LOG file.

for this we will have to write to the log file in all the events (into which we have written code)

But is there any way to log details automatically ?
means
Whenever we load a form or application the writing to log details starts automatically.

OR

Is there any way
a method is called automatically when any event occurs... ??

Thanx in advance..

ummm do you mean the code for login(connecting to database) in all?

try putting it into a module, then put your code there, make it universal connection, then call the code on the form load,