How to use command button to browse files and show picture in an access form?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • salman123
    New Member
    • Jul 2010
    • 1

    How to use command button to browse files and show picture in an access form?

    hi. i m trying to develop an employee data base in access. i would like to add a command button in the form which is when clicked it should open a window to browse through the folders and when a picture is selected it should display it at the disignated location. if anyone can please help me with this that will be really appriciated.
  • beacon
    Contributor
    • Aug 2007
    • 579

    #2
    Follow the instructions at the following website: http://support.microsoft.com/default...b;en-us;303066.

    The one thing that you will want to change though, is to set Text1 in the code to an Image control on your form. You'll need to remove the path in the Picture property for the image first.

    The replacement code for the Text will be:
    Code:
    Me.Image1.Picture = LaunchCD(Me)

    Comment

    • ADezii
      Recognized Expert Expert
      • Apr 2006
      • 8834

      #3
      Originally posted by salman123
      hi. i m trying to develop an employee data base in access. i would like to add a command button in the form which is when clicked it should open a window to browse through the folders and when a picture is selected it should display it at the disignated location. if anyone can please help me with this that will be really appriciated.
      I've created an Attachment for you which will:
      1. Open the Microsoft Office File Dialog
      2. Allow you to navigate then select any *.bmp, *.jpg, or *.gif File
      3. Display the Selected File in an Image Control
      Attached Files

      Comment

      Working...