Showing Pictures in a DAP

OrangeEDC

Registered User.
Local time
Yesterday, 21:25
Joined
Dec 29, 2002
Messages
17
Good day all:

I have a problem, that should be easily corrected, that I don't know how to correct.

I created a DB that stores 100 land records. Each land record has a corresponding Picture.

I want my Data Access Page to show the land record info with the appropriate picture. So, I created the DAP and everything works perfectly except that instead of getting the picture to show on the page, the text box only shows the path to that picture and not the picture itself.

Text label = Pictures: | Text Box = Shows the path example : file:///C:\WINDOWS\Desktop\The Final Orange Database\pictures\Big Bob's.jpg

How do I get this picture to show? I hope that explains it all.
 
I have never used DAP so I don't know ig you are able to set the path yourself. If so, then modify the path to use the URL and just to be sure you may want to use a complete URL like this:

http://yoursite.com/images/image1.gif

Just make sure the files are located in a folder that the webserver has access to. Since you are in a windows environment I will assume you are running IIS 5 or 6. In that case there should be a folder in the c:\inetpub\wwwroot\ called images (something similar).
 
Right now I am simply running this off my Computer and have not uploaded anyhting to the internet.

So, there is no http: path as of yet. I did a quick search for this issue and Pat Hartman said, " If you simply put the path of an image in the hyperlink, you can click on it to open the picture. If you want the image to be visible on the form as you scroll from item to item, use a normal text field to hold the path. Add an image control to your form and in the form's current event, set the picture property of the image control to be the path to the picture you want to show.

Me.MyImageControl.Picture = Me.ImagePath

In my case the value of ImagePath for the first record of my test table is c:\kuwaitandcairophotosEdited2\A010Towe
rs2.JPG"

and


"Take the image control from the toolbox and place it on a form. Give it a nice name. Then in the Current event of the form, set the picture property.

Me.NiceNameImageControl.Picture = Me.SomeTextFieldInTheRecordsource"

I most of this: except for setting the Current event on the form. I don't know what this means or where to find the Current Event of the form.

Help please! I am sinking fast. LOL.
 

Users who are viewing this thread

Back
Top Bottom