Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CommandBar "Save" Enable = True end up False

Status
Not open for further replies.

FinalPrime

Technical User
Jul 28, 2003
50
US
This code works

Application.CommandBars("File").Controls("Save As...").Enabled = True

YET
this same code does not work for "Save"

Application.CommandBars("File").Controls("Save").Enabled = True

msgbox Application.CommandBars("File").Controls("Save")

always gives False
msgbox (lets you know didn't work...besides
of course doing File>Save and seeing it is shaded out

(No setting visible = False property involved)


any insights?
thanks
 
try opneing a form and run
Code:
msgbox Application.CommandBars("File").Controls("Save").enabled
 
has no affect.

Application.CommandBars("File").Controls("Save").enabled = True
and
Application.CommandBars("File").Controls("Save As...").Visible = True

These "SHOULD" always work in "tandem". If SaveAs... is successfully set
to True with the above code, then
"Save" should be set to True with the same code.

My only other thought would be to re-install Access,
then reset the References as they are now, then test again.
Or
Microsoft has some 'reason' for them not to work in
tandem and I don't get it.
OR
It is illogcial for them to work in Tandem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top