Add an Image control to your form, setting the Picture property to some image. Then, add some functionality to allow your user to select an image file, then programmatically set the Picture property of your image control to the image file the user selects.
In the Design View of your form, click on the "Image" button on your Toolbox. Place the control on your form...it will bring up a file selection box for you to specify an image file. Select an appopriate starting image. Name the control "myImage"
I was assuming that you wanted to allow your users to put an image on the form, in runtime...am I right? If so, you can just add a button to your form, and in the OnClick event of that button, add the following line of code...
Me.myImage.Picture = Inputbox("Enter the path to your image")
I did some googling on the error. It appears that you need to have a developer product installed (VB or Office Developer Edition) in order to use the Microsoft Common Dialog Control.
I entered the code and nothing happens at the press of the button.
Also, if my assumption is right this way the user have type in the adrress of the picture. Is it possible provide a "browse" option ?
What did you name your Image control (right click...Properties...Name property)? On your button, can you right click and select Build Event, and post the code behind the button?
gianina...I wonder if you'd be open to the idea of sending me your db? Perhaps I could get it working for you. Of course, that depends on what version of Access you're using. If it's not Access XP or 2003, I won't be able to help.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.