Solved

Create simple bitmap to be displayed in bound object frame

Posted on 2009-06-30
2
349 Views
Last Modified: 2012-05-07
Using Access VBA, I would like to create a simple bitmap and display it in a bound object frame.

Regarding the bitmap, I use code to show the user the Windows color palette dialogue. When they select a colour, the number of that colour is returned -- eg. 15569978 (blue). Using VBA, I'd like to create a 100 x 100 pixel bitmap of this colour and save the bitmap into an image field in a table. I would then display this bitmap in a bound object frame.

I know it's not usually a good idea to embed images in an Access or SQL table, but in this case I need to so that I can show a different colour per record in a continuous form. For example, I need to display a list of products and each product has its own colour. I've tried conditional formatting through the UI and VBA, but can't get it to work.

I'd be very grateful for any help.
0
Comment
Question by:hemminggrp
[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 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 250 total points
ID: 24747043
"but in this case I need to so that I can show a different colour per record in a continuous form. "

See this ... already done for you:

http://www.lebans.com/alternatecolordetailsection.htm

and all the cool stuff:

http://www.lebans.com/Form.htm

mx
0
 

Author Closing Comment

by:hemminggrp
ID: 31602833
Sorry for the delay. Found what I was looking for in the cool stuff link (http://www.lebans.com/formatbycriteria.htm). Thanks very much.
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

634 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