Kipp Woodard said:
Has anyone worked out how to store an icon in an MDB, save it to disk via
VBA
code, and then set the Application icon property?
You are 100% correct in assuming that the icon you specified does not go
with the application when you move it to another machine. So I'm very well
understand the reason for asking your question.
I think in this case would I would do is actually build an install script
for the user. That way you also have a consistent location as to where you
install the database (application).
I have a sample install script that shows you how to copy the mdb file +
icon to a given direcity location in the following article of mine. It's
written for 2007, but it can be reused for any version of access.
I think the instant you start having additional files like that icon, then
for these related things that are outside of the database, then I think
that's the point in time in which you should adopt using the SAME directory
location for everybody, and some type of installer.
Here is that article:
http://www.members.shaw.ca/AlbertKallal//RunTime/Index.html
and the script part is here:
http://www.members.shaw.ca/AlbertKallal//RunTime/InstallExample.htm
In the above, my icon is merge.bmp
I also think that for distributing your applications and copying them
around, you should likely deploy as a mde, not a mdb. (however this approach
thus assumes that you split your database).