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
fOSUserName_Err

    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


fOSUserName_Exit:
    Exit Function

fOSUserName_Err:
    MsgBox Error$
    Resume fOSUserName_Exit
End Function

Step 3. Add an unbound text box control to your form: Set the Default Value for this control to name of this function: =FOSUserName()

Adding the control to the form to capture the username
Adding the control to the form to capture the username


Showing the default value property of the unbound textbox.

Step 4. View your completed form: You should now see the network username visible on the form.

Viewing the completed form including the username

2
next
Article Source: databasedev.co.uk
Article Submitted On: 2010-08-01 11:06:05
This article has been viewed 164 time(s).
Other newly Articles from the Laptop Repair Tips and Tricks - Database Tips Category:
  1. How to Do Batch Decrypting With GnuPG
  2. Fix RUNDLL Error; RUNDLL32 Error Messages at Startup on Windows XP or Vista
  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. Accessing ODBC Databases from Lotus Notes/Domino
  8. SQL Tuning Tutorial - Understanding a Database Execution Plan
  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 Create an Access Database with VBScript
  14. How to Fix Kernel32 Dll Problem
  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 ...