Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Login User

Login User

Login User


1st question:
I have an Approach Database that is shared by twelve users. Every user has his own password. Is there any possibility to transfer the user-name into a variable after login?
2nd question:
Has Approach any capabilities to show, which users are currently online?

Thanks in advance   

RE: Login User

Add the variable field to the opening view and edit its object name (Macros tab, Info Box) to fbxUserName. Create a Global LotusScript sub:

Public Sub sGetUserName
 CurrentView.Body.fbxUserName.Visible = False
End Sub

Press F5 to run the sub and make the field invisible. Then edit the sub to fulfil its intended purpose of assigning the user name to the variable field:

Public Sub sGetUserName
 CurrentView.Body.fbxUserName.Text = CurrentDocument.User
End Sub

Finally, create a macro named Open to call the sub when the apr is opened from disk:

View switch to opening view
Run sGetUserName

Paul Bent
Northwind IT Systems

RE: Login User

Re Q2: There's no built in facility to see who's currently using an apr or dbfs.

You would have to write something to a dbf when the user opens the apr and clear it when they close it; then you could query this dbf to see who is currently logged on. It's not easy to make this 100% reliable because the user must always close the apr via your procedure to clear them from the dbf.

Paul Bent
Northwind IT Systems

RE: Login User

I'll try it, thanks.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close