Solved

Create simple bitmap to be displayed in bound object frame

Posted on 2009-06-30
2
341 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now