Link to home
Start Free TrialLog in
Avatar of hemminggrp
hemminggrp

asked on

Create simple bitmap to be displayed in bound object frame

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.
ASKER CERTIFIED SOLUTION
Avatar of DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hemminggrp
hemminggrp

ASKER

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