A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Zoom Box



 
 
Thread Tools Display Modes
  #1  
Old June 8th, 2004, 03:01 PM
riley
external usenet poster
 
Posts: n/a
Default Zoom Box

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?
  #2  
Old June 8th, 2004, 05:57 PM
fredg
external usenet poster
 
Posts: n/a
Default Zoom Box

On Tue, 8 Jun 2004 07:01:01 -0700, riley wrote:

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.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:59 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.