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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JPG Files Appear as Icon

Status
Not open for further replies.

Kathleen

Instructor
Mar 23, 2000
5
US
In a form with a bound object frame, JPG files appear only as the icon. In the table, the field shows &quot;Package.&quot;<br><br>On the machine where this is happening, I do have several editing programs installed (CorelDRAW, Illustrator, PhotoShop), so it should recognize that extension.<br><br>I hope someone has a solution.<br><br>Thanks.<br><br>Kathleen
 
Never had much luck with embedded files<br>But I've used this code to view files in a form with major succcess.<br><br>Put it in your forms On_current event.<br>--------------------------<br>Private Sub Form_Current()<br>&nbsp;&nbsp;&nbsp;&nbsp;If Me![ID] &lt;&gt; 0 Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me!Image14.Picture = &quot;p:\ViewPhotos\Photos\&quot; & Me![ID] & &quot;.jpg&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Label20.Caption = &quot;File: &quot; & &quot; p:\ViewPhotos\Photos\&quot; & Me![ID] & &quot;.jpg&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;End If<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>End Sub<br>---------------------------<br>Add an &quot;Image&quot; control to the form not a bound box.<br><br>This also keeps your database from getting real huge because the files are still on your hard drive and loaded as needed instead of being embedded in the .mdb.<br><br> <p>DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br> Ask me how Bar-codes can help you be more productive.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top