Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

MS Access - quik question

Thread Tools
 
Search this Thread
 
Old 23 April 2003, 10:34 AM
  #1  
SinghSuperStud
Scooby Regular
Thread Starter
iTrader: (2)
 
SinghSuperStud's Avatar
 
Join Date: Jul 2001
Location: Walsall
Posts: 1,918
Likes: 0
Received 0 Likes on 0 Posts
Talking

In MS Access '97, I've successfully set up a workgroup and defined user priveleges etc.

I am developing a quick database which users currentuser() and now() to input the user name and time they click on a button to be registered in a table so I can check when they are logged on. Trouble is when each user clicks enter they overwrite any previous data and only one row exists in the table - any ideas ?

All I want is a quick answer so any help appreciated !!

Thanks, Jai
Old 23 April 2003, 10:36 AM
  #2  
S55 HOT
Scooby Regular
 
S55  HOT's Avatar
 
Join Date: Aug 2002
Posts: 665
Likes: 0
Received 0 Likes on 0 Posts
Question

How are you populating the table - is it a query ?
Old 23 April 2003, 12:58 PM
  #3  
SinghSuperStud
Scooby Regular
Thread Starter
iTrader: (2)
 
SinghSuperStud's Avatar
 
Join Date: Jul 2001
Location: Walsall
Posts: 1,918
Likes: 0
Received 0 Likes on 0 Posts
Post

No, via a form.

If I can use a form button to run a query that would be good too ! As long as it works, I don't care how !!
Old 23 April 2003, 04:02 PM
  #4  
TolTec
Scooby Regular
 
TolTec's Avatar
 
Join Date: Jul 2002
Posts: 289
Likes: 0
Received 0 Likes on 0 Posts
Post

If I understand what it is you are doing then...

You need to create an append query
In the Field boxes enter the data you want to add e.g MyField1:currentuser()
In the Append To boxes select the field in the table the data should go into

Use a macro on the button in your form to run the query.

Mail me if that is as clear as mud
Old 28 April 2003, 05:57 PM
  #5  
SinghSuperStud
Scooby Regular
Thread Starter
iTrader: (2)
 
SinghSuperStud's Avatar
 
Join Date: Jul 2001
Location: Walsall
Posts: 1,918
Likes: 0
Received 0 Likes on 0 Posts
Post

Hi,

ok - that worked brilliant !

Now - is it possible that I can capture the log-in time from Windows NT rather than requiring users to load up my database and then click on form buttons etc. ? This would be so much easier

I know that I'm now really getting demanding but has Access any built in methods or utils that will let me determine when a pc is being used ? I am in charge of data-inputters and it'd be good to work out how long they're actually doing work instead of bullsh*tting that they're working when they're just lookign at the screen !!
Old 28 April 2003, 08:23 PM
  #6  
S55 HOT
Scooby Regular
 
S55  HOT's Avatar
 
Join Date: Aug 2002
Posts: 665
Likes: 0
Received 0 Likes on 0 Posts
Talking

There should be something like =now() as a function
Old 29 April 2003, 09:13 AM
  #7  
TolTec
Scooby Regular
 
TolTec's Avatar
 
Join Date: Jul 2002
Posts: 289
Likes: 0
Received 0 Likes on 0 Posts
Post

It depends if you want to know when they open the database or when they log onto the PC really.

You could make the query run using an autoexec macro. An autoexec macro runs everytime the database is opened. You can also log when they close the DB if you want, the easiest way is to use an Exit button that runs a similar query.

If you want to log PC logins then you can enable auditing on the PC so that logins are entered in the event log (assuming you are running NT,W2k pro or XP).

You may be legally obliged to tell your staff that you are logging their work. Not sure about this but generally you have to let staff know if web access, email use, homedrives are logged and scanned.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
JimBowen
ICE
5
02 July 2023 01:54 PM
KAS35RSTI
Subaru
27
04 November 2021 07:12 PM
TylerD529
General Technical
2
09 October 2015 01:53 AM
Brzoza
Engine Management and ECU Remapping
1
02 October 2015 05:26 PM
Littleted
Computer & Technology Related
4
25 September 2015 09:55 PM



Quick Reply: MS Access - quik question



All times are GMT +1. The time now is 02:15 PM.