Results 1 to 4 of 4
  1. #1
    KrisDdb is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    58

    Question Windows login based display picture on Main form!?

    Hello All



    I have a splash form that gets the user info based on the windows login. When I click the login button on this splash form, it takes me to the main form of my database. What I am trying to do is, to set up an image control that would display the image of the user that has logged in, on the main form. Is this possible? Any ideas/suggestions?

    Best,

    Kris

  2. #2
    JeroenMioch's Avatar
    JeroenMioch is offline Competent Performer
    Windows Vista Access 2003
    Join Date
    May 2012
    Location
    Den Haag, Netherlands
    Posts
    368
    Extract the username on the main form and display the name in a hidden textbox.
    Then add the format behind the value of that textbox.

    Make sure the picture name is the same as the username.

    I can try that out for you if you like.

  3. #3
    KrisDdb is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    58
    Den,
    Thanks for the quick reply.
    Can you please elaborate on 'add the format behind the value of that textbox'? I already have a text box that extracts the username and displays it on the top right of the main form to let users know who is logged in. This is where i am trying to put the picture of the logged in user.. beside it. I can name the pictures of the individual users to be similar to the login names. what do I do after that?

  4. #4
    JeroenMioch's Avatar
    JeroenMioch is offline Competent Performer
    Windows Vista Access 2003
    Join Date
    May 2012
    Location
    Den Haag, Netherlands
    Posts
    368
    Well i have been looking for you to see what the best way to go is. In Holland we have a saying that there is more then one road that leads to Rome. In other words, different approaches might work.

    I tryed making an unbound Image field on the main form and code the form_load so that the form knows where to get the picture from. But to my dismay, i didnt succeed yet. But ill give u a glimps of the code im trying this with

    Code:
    fldPictureTime = Len(Dir("I:\MainDir\Jeroen\Incidents database\" & Me.fldUserNameAfterLogin & ".jpg"))
    I ran out of time because im at work, Ill try again tomorrow.

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

Similar Threads

  1. Replies: 1
    Last Post: 10-27-2011, 01:31 PM
  2. LogIn Form to filter Main Form
    By ggs in forum Forms
    Replies: 5
    Last Post: 07-12-2011, 04:27 AM
  3. Replies: 2
    Last Post: 06-17-2010, 04:15 PM
  4. Subform won't display in main form
    By Lynn in forum Forms
    Replies: 15
    Last Post: 03-22-2010, 10:17 AM
  5. Replies: 1
    Last Post: 01-04-2008, 11:40 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