>getEnabled="disableXxx
You have to make a public function in which it returns true/false.
so,
Public Function disablebt1
disable = gblBt1
end if
then in code, you go:
gblBt1 = false
ribbon refresh command goes here....
Now, if you think about the above, that means for every button you need to
enable/disable you have to write a public function and declare a variable.
that is too much work....
A better solution is my ribbon class system that allows you to go:
MyEnable("ribbonName").Contorls("Name of contorl").Enabled = true/false
You can find my example code here:
http://www.members.shaw.ca/AlbertKal.../msaccess.html
Access 2007 ribbon code enable/disable example
I not had the time to document the code..but take a quick look at the sample
form.
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
(E-Mail Removed)