473,387 Members | 1,882 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

open & close time of database?

i am working on access 2000. can i write a code which will tell me, at the
time of closing the database, that at what time i had opened the database
and at what time i am closing it? i am in a single user environment. i just
want to check whether someone is opening my databse behind my back!
thanks.

--
Message posted via http://www.accessmonster.com
Nov 13 '05 #1
7 1870

Shivalee Gupta via AccessMonster.com wrote:
i am working on access 2000. can i write a code which will tell me, at the time of closing the database, that at what time i had opened the database and at what time i am closing it? i am in a single user environment. i just want to check whether someone is opening my databse behind my back!
thanks.

--
Message posted via http://www.accessmonster.com


use a hidden form.
open it at startup.
in the open event of the form, write the user's NT logon name and the
time (datestamp) to a table. and then maybe a T/F for open/close
(True=Open)
Then in the unload event of the form, do the same, just use False.

And if you can't figure that out, you really do need a clue.

Nov 13 '05 #2
i do need a clue. i didnt understand a word of what you have written.
actually i am a very new learner. could you be kind and explian how to go
about doing it?
thanks a zillion.

--
Message posted via http://www.accessmonster.com
Nov 13 '05 #3
Another way of saying what Piet means:
This is not a built-in function in Access which you can simply activate.
If you don't know enough Access to follow his instructions (which really are
pretty simple for anyone with knowledge of Access coding), you should look
for some Access training before attempting this task.

OTOH, if you can make sure that Outlook is always on, you can use its
Journaling option to record when your database is opened. You can find
basic instructions on Journaling in the Outlook help file; if you need
further help, you could post in an Outlook group.

"Shivalee Gupta via AccessMonster.com" <fo***@AccessMonster.com> wrote in
message news:77******************************@AccessMonste r.com...
i do need a clue. i didnt understand a word of what you have written.
actually i am a very new learner. could you be kind and explian how to go
about doing it?
thanks a zillion.

--
Message posted via http://www.accessmonster.com

Nov 13 '05 #4
pi********@hotmail.com wrote:
And if you can't figure that out, you really do need a clue.


? What did the OP do to deserve that? Have I missed other threads?

--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Nov 13 '05 #5
is it a punishment to be a newcomer? is it bad to be a learner? is it not
an open forum where in and through which i can learn? or do all & everyone
go through only a course or something to learn?
still, thnaks for your time,
shivalee.

--
Message posted via http://www.accessmonster.com
Nov 13 '05 #6
Got to agree with you both... no need to be nasty to someone just
becuase they are learning.

In fact this is not a simple task and it would be advisable to get some
other advice first, but there are better ways of explaining things that
might have been more easily understood.

Shivalee, you should begin by getting advice on how to write code
modules in Access Visual Basic. This is best received from several
books you can search for on Amazon or similar book sites. You can also
search for web sites offering free tutorials.

Then once you understand how to create new code and to refer to it in
relation to other elements of your database, you can develop a function
as described in the original reply to your message. In essence whatthe
poster was saying is that you have to create a form that is not
attached to a table and add a code module to it that is triggered by
the form being opened.

That code will just refer to a table in your database that you should
have created already to allow the entry of the username and date/time
stamp.

Then you add further code to the form so that when it is unloaded
(similar to closed) the username and date/time are written to the table
again.

The true/false bit says that you should also write a value to the table
to tell whether it is refering to an open or close event.

If you are still stuck by that then i suggest reading up a little on
the subject first and trying some simple examples from other places.
Then come back to this.

Regards,

Rob.

Nov 13 '05 #7
thanks rob for at least being supportive. i shall try and do as you say.
thanks,
shivalee

--
Message posted via http://www.accessmonster.com
Nov 13 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: C Sharp beginner | last post by:
I'm sorry about this verbose posting. This is a follow-up to my yesterday's posting. Thanks William for your reply. I understand it is a good practice to open connections as late as possible and...
4
by: Macca | last post by:
Hi, I have an windows forms application that accesses a SQL database I have a few questions as to connecting to the database. This application will run 24 hours a day. It is a monitoring...
6
by: B B | last post by:
Okay, here is what's happening: I have a reasonably fast laptop (1.4 GHz Mobile M, so comparable to 2.5GHz P4) doing .net development. Running Windows XP pro, SP2 IIS is installed and running...
4
by: mescano | last post by:
I am currently implementing a singleton pattern for accessing a database. Is it advisable to close the connection to the database at all -- thus leaving it open or should it be closed. If closed,...
4
by: _Mario.lat | last post by:
Hallo, I have a little question: In the function session_set_save_handler I can pass the name of function which deal with session. In Xoops code I see the use of this function like that: ...
7
by: fniles | last post by:
I am using VB.Net 2003 and MS Access (connecting using OleDBConnection). I read using DataAdapter and DataSet, not DataReader. When many people try to access the database at the same time, I get...
5
by: Usman Jamil | last post by:
Hi I've a class that creates a connection to a database, gets and loop on a dataset given a query and then close the connection. When I use netstat viewer to see if there is any connection open...
2
by: existential.philosophy | last post by:
This is a new problem for me: I have some queries that open very slowly in design view. My benchmark query takes about 20 minutes to open in design view. That same query takes about 20 minutes...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.