Avatar of JudithARyan
JudithARyan
Flag for United States of America asked on

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.

Judith
Microsoft Access

Avatar of undefined
Last Comment
Jeffrey Coachman

8/22/2022 - Mon
DatabaseMX (Joe Anderson - Former Microsoft Access MVP)

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 Coachman

^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.

JeffCoachman
JudithARyan

ASKER
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.

Judith
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
JudithARyan

ASKER
The event code is just one line:

DoCmd.RunCommand acCmdZoom150
Jeffrey Coachman

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:

Me.YourMemoControl.SetFocus
DoCmd.RunCommand acCmdZoomBox
ASKER CERTIFIED SOLUTION
Jeffrey Coachman

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
DatabaseMX (Joe Anderson - Former Microsoft Access MVP)

Won't work in a Text Box ...
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
DatabaseMX (Joe Anderson - Former Microsoft Access MVP)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Jeffrey Coachman

Like so:
Database54.accdb
JudithARyan

ASKER
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 Coachman

Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy