Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Images Not Showing

Status
Not open for further replies.

dsk525

Programmer
Mar 13, 2002
73
0
0
US
Hi All,

I am using a digital camera to take photos and then using a software to reduce the resolution so the file size is not too large for Microsoft Access. After uploading the images, there are a few images that show up and there are some that do not show up on ASP pages. The file size that I upload to Access is generally 10kb to 30kb.

Any advice in ensuring that images show up properly on ASP pages would be much appreciated.

Thank you in advance.
 
Leave the file intact on the hard drive and then load it on the fly with this code.

Add an "Image" control to the form

Private Sub Form_Current()
If Me![ID] <> 0 Then
Me!Image14.Picture = &quot;p:\ViewPhotos\Photos\&quot; & Me![ID] & &quot;.jpg&quot;
Label20.Caption = &quot;File: &quot; & &quot; p:\ViewPhotos\Photos\&quot; & Me![ID] & &quot;.jpg&quot;
End If

End Sub


DougP, MCP, A+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top