Link to home
Start Free TrialLog in
Avatar of JudithARyan
JudithARyanFlag 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
Avatar of DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
Flag of United States of America image

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.
^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
Avatar of 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
The event code is just one line:

DoCmd.RunCommand acCmdZoom150
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
Avatar of Jeffrey Coachman
Jeffrey Coachman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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