[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.5

Show a picture stored in Access on an Access form

Asked by bthouin in Access Forms, Access Coding/Macros

Hi

I'm pulling my hair out on what I thought would be a simple problem:
- I have an Access DB with a form
- in the DB, I have a table with 2 fields: image name, image ( of type OLE object)
- I have manged, by using code found on the Internet, to store a bitmap image in my table
- but now, for the life of me, I CANNOT retrieve this image into a simple image control or an OLE unbound frame !
- first I don't know which kind of control I should use (I've read control names on the Internet which I can't find in Access and also not in the add-ins)
- second a simple control doesn't seem to do

I get only weird errors like:
- The setting for this property is too long
- The bitmap you specified is not in a device-independant bitmap (.dib) format

You'll see in the code area what kind of things I tried which resulted all in errors or compile errors.

Can someone tell me how to "read in" my OLE object out of my simple table into a standard control on an Access form ? I'm despairing, mainly because of the time lost with this "simple problem". I am using MS Access 2002 SP3.

Bernard
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
Public Function SetImage(logo As String)
    Dim rs As Recordset
 
    Set rs = CurrentDb.OpenRecordset("SELECT Image FROM tbLogos WHERE ImageName = '" & logo & "'", dbOpenDynaset)
    Me.OLEUnboundFrame.SourceItem = rs!Image     ' Error: setting for property too long
    Me.OLEUnboundFrame.Action = acOLEEmbed
    Me.imgBox.PictureData = rs!Image                        ' bitmap format error
    'Me.imgBox.DataSource = rs                                 ' Compile error
    'Me.imgBox.DataField = "Image"                             ' Compile error
End Function
[+][-]03/31/09 03:06 PM, ID: 24034209Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Access Forms, Access Coding/Macros
Sign Up Now!
Solution Provided By: LPurvis
Participating Experts: 3
Solution Grade: A
 
[+][-]03/19/09 07:48 PM, ID: 23936541Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/20/09 03:30 AM, ID: 23938106Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/20/09 07:55 AM, ID: 23939872Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/29/09 07:31 AM, ID: 24012835Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/30/09 02:31 AM, ID: 24017191Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/30/09 03:25 PM, ID: 24024099Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/30/09 07:45 PM, ID: 24025345Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/31/09 01:01 AM, ID: 24026619Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/31/09 06:32 AM, ID: 24028706Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/31/09 06:34 AM, ID: 24028721Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/31/09 06:38 AM, ID: 24028753Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/31/09 02:15 PM, ID: 24033761Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/01/09 03:47 AM, ID: 24037687Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/02/09 10:47 AM, ID: 24052549Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625