By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,442 Members | 1,332 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,442 IT Pros & Developers. It's quick & easy.

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

P: 1
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.
Jul 22 '10 #1
Share this Question
Share on Google+
2 Replies


beacon
100+
P: 579
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:
Expand|Select|Wrap|Line Numbers
  1. Me.Image1.Picture = LaunchCD(Me)
  2.  
Jul 30 '10 #2

ADezii
Expert 5K+
P: 8,701
@salman123
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
File Type: zip Display Picture.zip (15.5 KB, 1771 views)
Jul 30 '10 #3

Post your reply

Sign in to post your reply or Sign up for a free account.