Categories Menu
Repair Center
24 hours online support we repair all types of laptops and relating to LCD screen,motherboard, DC adapter, power supplies and so much more! The shop reliable laptop repair in Ottawa area since 1995. Repair your laptop as easy as 1-2-3 !
computer_25
Services for your location
How to Capture your Network Database User's Name
print
report error
add to favorites
write a review
send to friends
suggest a topic
register

Looking for that extra special effect to give your database project a professional flair. Would you like to display your User's names as they log in to the database?

If the answer is yes then carry on reading.........

Step 1. Create a Welcome form: Please see the article entitled Add a Welcome Message to Your Database for details on how to do this.

Step 2. Create the Module shown below: To enable you to automatically pick up the user name from the network login details. This will also automatically pick up stand alone login details (tested on Windows XP).

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

'-------------------------------------------------
' This code is used to retrieve the network user
' name by accessing the API apiGetUserName.
' Created by: Unknown (Found on Dev Ashish
' web site www.mvps.org/access/)
' This code has not been altered in anyway.
' Added to database: 27 dec 1999
' Added by: Richard Rensel
'-------------------------------------------------

Function fOSUserName() As String
    On Error GoTo

prev
1
Other newly Articles from the Laptop Repair Tips and Tricks - Database Tips Category:
  1. Fix RUNDLL Error; RUNDLL32 Error Messages at Startup on Windows XP or Vista
  2. How to Do Batch Decrypting With GnuPG
  3. Create a Database Search Page Using Expression Web
  4. Microsoft Access Stored Queries and VBscript
  5. Getting Started: Oracle SQL Developer Release 2.1
  6. How to Find a Hidden File on Your Computer
  7. SQL Tuning Tutorial - Understanding a Database Execution Plan
  8. Accessing ODBC Databases from Lotus Notes/Domino
  9. Databases from scratch II: Simple Database Design
  10. How to Install PostgreSQL Using the Source Code
  11. Ways To Stop Runtime Error 424
  12. SQL Server DO's and DON'Ts
  13. How to Fix Kernel32 Dll Problem
  14. How to Create an Access Database with VBScript
  15. How to Reinstall Windows Without Losing Your Data
Custom Search
Examples: HP,laptop Rapair,LCD,DC Backlight,Inverter,solder
Article Comment:Replies(0)Views
Name(required):        Email(required):  
Verify: key
Use the above information at your own risk
Loading ... Loading ...