Solved

Access Database Images to VB Form

Posted on 2002-03-30
4
136 Views
Last Modified: 2010-05-02
Hello,

I am trying to make a database use in a vbForm.  Everything seems to be fine, as in the text fields are all loading.  However, I also have images in it, but they dont come on the form.  It says invalid picture.  if i put that picture directly into it, it works.  Not when the database loads it.  I have the image stored in the database as an OLE object.  Is there a special conversion needed?

I am using a bmp file.  I tried jpg as well.
Thanks!  
0
Comment
Question by:jwnrb
  • 2
  • 2
4 Comments
 
LVL 3

Accepted Solution

by:
Bahnass earned 50 total points
ID: 6907398
in VB U use picture box or OLEContainer !!!
0
 

Author Comment

by:jwnrb
ID: 6907434
Ah neat OLE Container works.

thanks so much!

why wouldnt image work before?  picture now says invalid source but ole works just fine!

thanks!!!!

jw
0
 
LVL 3

Expert Comment

by:Bahnass
ID: 6908550
in access picture stored as ole object not just a picture file but ACESS Stores some header info about the file

(I knew that from extracting that field using getchunk)
any how thanks 4 points
0
 

Author Comment

by:jwnrb
ID: 6908845
i received a demo file that did make use of the picture object and access said it wsa ole type..but when i tried to investigate it, it said activeX server error and the in edit mode it had long binary data type written.  (when i made my own, it said Photoshop File).

but oh well.  at least i got it to work now!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Visual Basic Excel Formatting error 4 83
MS Access - Capture pressed key onclick 4 28
Using "ScreenUpdating" 6 55
SQL VB connection works in one PC and doesn't in another 15 57
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now