Solved

Create simple bitmap to be displayed in bound object frame

Posted on 2009-06-30
2
344 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
2 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

803 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