A2010 Zoom % error "Isn't available now"

When I try to use the acCmdZoom150 in A2010, I get an "Isn't available now" error.  I get the same error when I try acCmdFitToWindow.  Is this a missing reference or something else?

I'm converting from A2003 to A2010.

JudithARyanTech SupportAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Systems AnalystCommented:
Are you doing this in a Report or elsewhere ?

I think those commands only apply to Reports ... or possible the Print Preview of a Form.
Jeffrey CoachmanMIS LiasonCommented:
^Agree with above, ...also, please be specific when you say:
"I try to use the acCmdZoom150 in A2010"
Use for what object?
Use it on what event?
...and please post the full code, perhaps you have the syntax wrong.

JudithARyanTech SupportAuthor Commented:
I'm doing this in the OnClick event for a memo field in a form.   In A2003, I used acCmdZoomBox, but I would like to make the zoom area larger for easier typing and reading.

Active Protection takes the fight to cryptojacking

While there were several headline-grabbing ransomware attacks during in 2017, another big threat started appearing at the same time that didn’t get the same coverage – illicit cryptomining.

JudithARyanTech SupportAuthor Commented:
The event code is just one line:

DoCmd.RunCommand acCmdZoom150
Jeffrey CoachmanMIS LiasonCommented:
Then the Object Zoom command is not what you want.

try code like this, it works fine for me on a button in a form:

DoCmd.RunCommand acCmdZoomBox
Jeffrey CoachmanMIS LiasonCommented:
In other words, acCmdZoom150 will zoom "Objects (reports mostly), ...not controls.

Then best you can do is to create a separate popup form to zoom the memo field.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Systems AnalystCommented:
Won't work in a Text Box ...
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Systems AnalystCommented:
You can only use the Zoom Box in a Text box :-(
Jeffrey CoachmanMIS LiasonCommented:
Like so:
JudithARyanTech SupportAuthor Commented:
I setting the Solution to A, even thought you guys didn't give me good news.  At least I know where I stand in this situation.

Thanks,  Judith
Jeffrey CoachmanMIS LiasonCommented:
My last post was a technique to do this...
...did you investigate it?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.