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.