J
Jeff Conrad
Hi,
Using Access 97 at the moment.
I'm working on a project and something has me stumped. I've been reviewing Chapter 19 of the ADH 97
and specifically the area of accessing the FaceIDs for command button pictures. The book even has a
sample form to display all the different command button bitmaps which are stored in a big slab and
accessed through FaceID numbers. I understand all this. The sample form allows you to change the
command button pictures of open forms, although once you close the form the changes are not saved.
Here is my issue. Where is this information stored that tells Access that *this* particular command
button is to use *this* particular FaceID? And more importantly, how do I access it? Is this
property not exposed to the developer?
To illustrate my issue, say in design view I tell a command button called cmd1 to use the airplane
bitmap by using the built in button properties. I do this by going to the Picture line on the
Properties area, hitting the (...) button, and browsing to the airplane picture on the built-in
Access form. The only thing the Properties line says is (Picture). It certainly does not say
"Airplane" nor FaceID = <Whatever>. I close and save the form. Every time I open the form, Access in
its infinite wisdom knows to display the airplane. How?
Going to the code window and looking on the available properties for the command button leads me to
an option called PictureData. The ADH form uses the PictureData property, but I still cannot figure
out how to change this value in code, or more importantly, find out what its current *value* is.
A simple sub of:
MsgBox Me.cmd1.PictureData
yields this:
(
Huh???
Well that does not help me! How can I find out in code what this *value* may be and how do I then
change it to something else whenever I want? It's easy to change the caption, but how do I read the
value and change the picture if I desire?
Thanks for any help,
Using Access 97 at the moment.
I'm working on a project and something has me stumped. I've been reviewing Chapter 19 of the ADH 97
and specifically the area of accessing the FaceIDs for command button pictures. The book even has a
sample form to display all the different command button bitmaps which are stored in a big slab and
accessed through FaceID numbers. I understand all this. The sample form allows you to change the
command button pictures of open forms, although once you close the form the changes are not saved.
Here is my issue. Where is this information stored that tells Access that *this* particular command
button is to use *this* particular FaceID? And more importantly, how do I access it? Is this
property not exposed to the developer?
To illustrate my issue, say in design view I tell a command button called cmd1 to use the airplane
bitmap by using the built in button properties. I do this by going to the Picture line on the
Properties area, hitting the (...) button, and browsing to the airplane picture on the built-in
Access form. The only thing the Properties line says is (Picture). It certainly does not say
"Airplane" nor FaceID = <Whatever>. I close and save the form. Every time I open the form, Access in
its infinite wisdom knows to display the airplane. How?
Going to the code window and looking on the available properties for the command button leads me to
an option called PictureData. The ADH form uses the PictureData property, but I still cannot figure
out how to change this value in code, or more importantly, find out what its current *value* is.
A simple sub of:
MsgBox Me.cmd1.PictureData
yields this:
(
Huh???
Well that does not help me! How can I find out in code what this *value* may be and how do I then
change it to something else whenever I want? It's easy to change the caption, but how do I read the
value and change the picture if I desire?
Thanks for any help,