Zoom Box

G

Guest

I have a command button on a form that opens a text field in a zoom box (DoCmd.Runcommand acCmdZoomBox). Is there any way to change the properties of the zoom box so the contents are read-only?
 
F

fredg

I have a command button on a form that opens a text field in a zoom box (DoCmd.Runcommand acCmdZoomBox). Is there any way to change the properties of the zoom box so the contents are read-only?

Let me make sure i understand you.
You have a field in which users can enter and modify data at will.
The only time you wish to have the field read only is if they use the
Zoom Box. Is that correct?

(Why not use the control's Double-click event instead of a separate
command button?)

Code the Command button click event:

Me![ControlName].SetFocus
DoCmd.RunCommand acCmdZoomBox
Me![ControlName].Locked = True

Then code the [ControlName] control's Exit event:
Me![ControlName].Locked = False

The user can type in the Zoom Box, but it will not change the actual
data in the field.
The control will be unlocked when you navigate to the next control.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

zoom command 1
Zoom box end of text 1
Text Box Zoom Question 1
Zoom box 3
Alter zoom text default font 3
How to best select from image and print full size? 1
Memo Zoom Box 1
DoubleClick event 3

Top