JudithARyan
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
I'm converting from A2003 to A2010.
Judith
^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
"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
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
Judith
ASKER
The event code is just one line:
DoCmd.RunCommand acCmdZoom150
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.SetFocu s
DoCmd.RunCommand acCmdZoomBox
try code like this, it works fine for me on a button in a form:
Me.YourMemoControl.SetFocu
DoCmd.RunCommand acCmdZoomBox
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Won't work in a Text Box ...
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Like so:
Database54.accdb
Database54.accdb
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
Thanks, Judith
My last post was a technique to do this...
https://www.experts-exchange.com/questions/28693671/A2010-Zoom-error-Isn't-available-now.html?anchorAnswerId=40860191#a40860191
...did you investigate it?
https://www.experts-exchange.com/questions/28693671/A2010-Zoom-error-Isn't-available-now.html?anchorAnswerId=40860191#a40860191
...did you investigate it?
I think those commands only apply to Reports ... or possible the Print Preview of a Form.