Solved

Create simple bitmap to be displayed in bound object frame

Posted on 2009-06-30
2
345 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 - 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: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
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…

821 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