Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Access Database Images to VB Form

Posted on 2002-03-30
4
Medium Priority
?
142 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 3

Accepted Solution

by:
Bahnass earned 200 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

610 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