ngvibol
You're not being clear here.
What properties are you tring to get at?
What is the operating system of your computer?
What version of Access/Office are you using? (I'm guessing it's Acc2007/2010 based on the VBA command you attempted).
Also, just in case this isn't a typo in the post,
Commandbas("Property Sheet").enabled=True
Should be
CommandbaRs("Property Sheet").enabled=True
[Edit]
Open the form in design mode
[/Edit]
Try re-typing the correct syntax in the immediates window (shortcut <ctrl><g> , in Access 2007/2010 you can do this from the main GUI and it will open the VBE and the IW.)
Once you've entered this command correctly
Next:
Open form in design mode, [F4]
Next:
Acc2007/2010
Open form in design mode
Ribbon>[Form Design Tools>Design>Property Sheet]
Note that the Form Design Tools is a context ribbon. The from must be open in design view and selected or a control in the form selected for this ribbon to appear.
If none of this works... go back and find your code that you used to disable the commandbars. I would suspect it looks like this:
- For Each obj In CommandBars
-
obj.Enabled = False
-
Next objSo
Change line 2 from "false" to "true" and have that code re-execute. Now try your property sheet. If this works then you need to find a different method of doing what you are doing.
Finally see if this helps:
Close your Access and any office programs
On the desktop
Go to Start -> Run -> type msaccess/safe