Results 1 to 5 of 5
  1. #1
    noaccessguru is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Melbourne, Australia
    Posts
    68

    Information fro .ldb file


    Hi guys,I have a quick question, this is probably way out of my area but just thought someone might know. (and I apologise if I havent posted this in the right section of the Forum)In the .ldb file if you open that in Notepad, at my work it gives me the ‘Computer Name’ of who is using the database. (eg ABC1234 – Admin)Is there a way to change this to show me the ‘Username’ or is this a Business IT thing that pulls from our IP address and isn’t related to Access?I dont want to set up Users and Groups etc, I just use this as a guide of who I need to kick out if I do.Hope someone can shed some light on this for me!Thanks in advance.(Apologies if this posts without paragraphs etc I dont know whats going on!!)

  2. #2
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Maybe this code will help:
    http://support.microsoft.com/kb/186304

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    Is your db a split design with each user running their own copy of frontend from their own computer? If they are then that code might not work as each copy will open its own ldb file. I will have to do some testing of this code with the ldb of the backend.

    What I do with a split db is have a table of users. This table has fields for the username, initials, computer name. The computer name field is populated by code when user opens frontend and then set to null when they exit. If I thought any user would log into more than one computer at a time and open the db on both machines, I would do things a little different, but doubt that will ever happen (except by me). I grab the username from the network with: VBA.Environ("USERNAME") - yes, type it exactly like that. Access won't recognize the Environ function but VBA does.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    noaccessguru is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Melbourne, Australia
    Posts
    68
    Thanks ssanfuHi June7Thanks for that……Im not great with code etc, but what you have suggested sounds like what I want. Obviously I don’t have a list of everyone’s computer names so I need to know who the Username is associated to it.Yeah my database is a split design with everyone using their own copy of the mde file from their computer. So I can tell when someone is using it as I can see the BE.ldb database in my Network folder….Since I am still just learning so only really know how to do the basics (DoCmd etc) at the moment, but will attempt what you suggested, and will have a play around this and see what happens!So I guess I might be back with some more questions !Thanks again....

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    I don't have a list of computer names. A user can log into the network from any machine, although they usually use the one at their desk. I forgot to mention that I also grab the computer name from the network that the user is logged in at. The table has the username and their initials because we save initials into records of db. Code grabs username from network, finds them in the table, populates the computer name field and grabs their initials and populates a textbox on main menu form which always stays open.

    Review this about Environ function http://blogs.officezealot.com/charle...2/10/3574.aspx
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. importing header and body information from text (csv) file
    By JamesL in forum Import/Export Data
    Replies: 6
    Last Post: 04-10-2012, 09:47 PM
  2. Replies: 10
    Last Post: 03-04-2012, 12:17 AM
  3. workgroup information file
    By ashutosh in forum Access
    Replies: 0
    Last Post: 04-14-2011, 02:35 AM
  4. Replies: 1
    Last Post: 09-27-2010, 10:10 AM
  5. workgroup information file
    By ghiey in forum Access
    Replies: 0
    Last Post: 07-25-2009, 08:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums