PC Review


Reply
Thread Tools Rate Thread

Datafield which shows the logged in users

 
 
jmslab@kpnmail.nl
Guest
Posts: n/a
 
      1st Nov 2008
Hoi,

Is there a possibilty for creating a datafield on a form in a database
which shows the logged in user(s) at that moment.

For example:
I'm opening Database-1 which starts with Form-1. On Form-1 there is a
log-datafield that shows that user-1 is logged in into this
Database-1.
After a while.... user-2 is logged in into the same Database-1. At
this moment Form-1 should refresh and the log-datafield shows now the
two users that are logged in into this database.
When one of them closes the file, Form-1 refreshed again and the log-
datafield shows the user thats still logged in.

hopely somebody can help me with this.

regards,
Johan
 
Reply With Quote
 
 
 
 
Daniel Pineault
Guest
Posts: n/a
 
      2nd Nov 2008
Take a look at

http://www.mvps.org/access/general/gen0034.htm
--
Hope this helps,

Daniel Pineault
http://www.cardaconsultants.com/
For Access Tips and Examples: http://www.devhut.net
Please rate this post using the vote buttons if it was helpful.



"(E-Mail Removed)" wrote:

> Hoi,
>
> Is there a possibilty for creating a datafield on a form in a database
> which shows the logged in user(s) at that moment.
>
> For example:
> I'm opening Database-1 which starts with Form-1. On Form-1 there is a
> log-datafield that shows that user-1 is logged in into this
> Database-1.
> After a while.... user-2 is logged in into the same Database-1. At
> this moment Form-1 should refresh and the log-datafield shows now the
> two users that are logged in into this database.
> When one of them closes the file, Form-1 refreshed again and the log-
> datafield shows the user thats still logged in.
>
> hopely somebody can help me with this.
>
> regards,
> Johan
>

 
Reply With Quote
 
jmslab@kpnmail.nl
Guest
Posts: n/a
 
      3rd Nov 2008
Thanks,
This file helps me in the right direction. I see that I have to figer
out how to prepare the macro on such a way that I can set the selected
file as a default (then you don''t need to select the same file
everytime).
In the mdb file below macro is registered which belong to the button
to select your file. How can I change this macro so it's selecting
automaticle for example "C:/Apps/Test.mdb". Or is there a way that, if
I build this macro in in my own file, it's looks automaticly in the
file were it's build in (should be nicer).

regards,
Johan

Private Sub cmdBrowse_Click()
On Error GoTo ErrHandler

With Me.txtDBPath
.Value = DialogFile(1, _
"Please select an Access database...", _
vbNullString, _
"Access Databases (*.mda, *.mdb, *.mde)|
*.mda;*.mde;*.mdb", _
CurDir(), _
vbNullString)
If Len(.Value) Then
Me.chkUserRoster.Enabled = fIsJet4DB(.Value)
Call cmdExecute_Click
End If
End With
ExitHere:
Exit Sub
ErrHandler:
With Err
MsgBox "Error: " & .Number & vbCrLf & .Description, _
vbCritical Or vbOKOnly, .Source
End With
Resume ExitHere
End Sub
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Users Logged =?Utf-8?B?RmFiaW8=?= Microsoft Access VBA Modules 5 10th Aug 2006 12:27 PM
Logged on Users =?Utf-8?B?UGV0ZXIgRg==?= Microsoft Windows 2000 0 8th Apr 2006 10:14 AM
Task Manager- only shows who is logged on?? =?Utf-8?B?QW15IE1hcmllIH4gbUF5IGkgcmVhTT8=?= Windows XP Help 1 26th Feb 2006 12:56 AM
How many users logged in to day Dale Microsoft Windows 2000 Active Directory 1 27th Feb 2004 12:55 AM
How many users are logged on Dan Microsoft Windows 2000 Active Directory 0 5th Feb 2004 04:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:11 PM.