A notification message

  • Thread starter Thread starter Manos
  • Start date Start date
M

Manos

Dear all

I have a machine working like a server with windows 2000
on it. It also use office 2000.
There is any possibility when i am going to shut down the
machine (server) i want to see a message that tells me
that the user 1 is on the form and importing data.

There is a such possibility?

Can i make the access to give me a message that a user is
working before shut down the machine?

If it impossible through access can i do something
through windows?

Thanks in advance Manos
 
Please check your windows 2000 configuration
im sure theres a way but most probably not a very detailed
one ( i mean...telling you user 1 is using form...)

(novell 3 has that capability...well its novell)
 
use a function like

Private Declare Function apiGetUserName Lib "advapi32.dll" Alias _
"GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long

Function fOSUserName() As String
' Returns the network login name
Dim lngLen As Long, lngX As Long
Dim strUserName As String
strUserName = String$(254, 0)
lngLen = 255
lngX = apiGetUserName(strUserName, lngLen)
If lngX <> 0 Then
fOSUserName = Left$(strUserName, lngLen - 1)
Else
fOSUserName = ""
End If
End Function

to collect and store the use when the form is in use .

then use the ontimer event to send a msgbox to the use when you want .


Chris
 
Can you please be more specific or more analytical
because i am not in such advance level.
Probably this is a visual basic.
how can i use it?
and where

can you help me step by step

Thanks a lot
Manos
 
Back
Top