473,791 Members | 2,995 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

AC2000 - hitting enter after zooming a memo field closes the zoom instead of creating a new line

I think that just about sums it up. Is there a fix/workaround for this?It's
quite annoying behaviour and not user-friendly.thanks Martin
Nov 12 '05 #1
10 4405
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
That is the default action of the Zoom box. You won't be able to fix
it.

If you are using a Text Box & you want to be able to hit Enter w/o
moving to next field/record, you have to set the Text Box's "Enter Key
Behavior" (under the Properties dialog box Other tab) to "New Line in
Field."

If you are trying to put multiple lines in a Label's Caption property
you can type the text w/ CRs in an open Notepad (you don't have to
create/save a new file) and cut & paste the text into the Caption.

--
MGFoster:::mgf0 0 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQJ5kPIechKq OuFEgEQKgiACfUr mf46p67g+vTlevt NxmPRW/NjwAn3VB
qOvkduRXe8M2YBO SWbRou6tM
=oCkq
-----END PGP SIGNATURE-----
Deano wrote:
I think that just about sums it up. Is there a fix/workaround for this?It's
quite annoying behaviour and not user-friendly.thanks Martin


Nov 12 '05 #2
MGFoster wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
That is the default action of the Zoom box. You won't be able to fix
it.
Ah, that's a bit of a downer. I have a continuous form and each record has
a smallish textbox where the user can enter some notes. These notes could
be quite long hence the zoom box. I just realised that you have to type
continuously instead of being able to hit enter to get a carriage return.
Of course you can do this at any time if you stay in the textbox. I think
that's a bit silly to be honest and doesn't offer a very friendly interface.

If you are using a Text Box & you want to be able to hit Enter w/o
moving to next field/record, you have to set the Text Box's "Enter Key
Behavior" (under the Properties dialog box Other tab) to "New Line in
Field."


Yes I think I must have this set up ok for me to be able to hit enter and
generate a new line successfully.

Is there an alternative to zooming? Or would i have to code up a pop up
form for the user to use (which sounds like alot work to me...)

thanks for the reply.

Nov 12 '05 #3
On Sun, 9 May 2004 17:11:07 +0100, Deano wrote:
I think that just about sums it up. Is there a fix/workaround for this?It's
quite annoying behaviour and not user-friendly.thanks Martin


When you are in the Zoom Box, hit Ctrl + Enter for a new line within
the Zoom Box and it won't exit the Box.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Nov 12 '05 #4
fredg wrote:
On Sun, 9 May 2004 17:11:07 +0100, Deano wrote:
I think that just about sums it up. Is there a fix/workaround for
this?It's quite annoying behaviour and not user-friendly.thanks Martin


When you are in the Zoom Box, hit Ctrl + Enter for a new line within
the Zoom Box and it won't exit the Box.


Cheers, that'll do!
Nov 12 '05 #5
Hi folks,

[Ctrl] + [Enter] also works for labels and memo fields...

Don

"fredg" <fg******@examp le.invalid> wrote in message
news:uo******** *************** ******@40tude.n et...
On Sun, 9 May 2004 17:11:07 +0100, Deano wrote:
I think that just about sums it up. Is there a fix/workaround for this?It's quite annoying behaviour and not user-friendly.thanks Martin


When you are in the Zoom Box, hit Ctrl + Enter for a new line within
the Zoom Box and it won't exit the Box.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.

Nov 12 '05 #6
"Deano" <de*********@ho tmail.com> wrote in
news:nI******** ***********@sto nes.force9.net:
MGFoster wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
That is the default action of the Zoom box. You won't be able to
fix it.


Ah, that's a bit of a downer. I have a continuous form and each
record has a smallish textbox where the user can enter some notes.
These notes could be quite long hence the zoom box. I just
realised that you have to type continuously instead of being able
to hit enter to get a carriage return. Of course you can do this
at any time if you stay in the textbox. I think that's a bit
silly to be honest and doesn't offer a very friendly interface.

If you are using a Text Box & you want to be able to hit Enter
w/o moving to next field/record, you have to set the Text Box's
"Enter Key Behavior" (under the Properties dialog box Other tab)
to "New Line in Field."


Yes I think I must have this set up ok for me to be able to hit
enter and generate a new line successfully.

Is there an alternative to zooming? Or would i have to code up a
pop up form for the user to use (which sounds like alot work to
me...)


The ZoomBox is just a form in one of the wizard MDEs that ships with
Access.

You could replicate it yourself with a text box that has your
preferred enter key.

The way I'd do it is create the zoom form with an unbound text box
set to have your preferred Enter key behavior. Assume that you're
going to pass the form the data you want edited in the form's OnLoad
event. To do that, check if Me.Openargs = vbNullString or not. If it
doesn't, then put the value of Me.Openargs in the textbox on the
form. Then, for the form's CLOSE button, have it hide the form
instead of closing it. The way I handle this is that I make the
CANCEL button also hide the form, but it sets the form's .Tag
property to CANCEL. This leaves the form open after you're done with
it so that code that follows can process the values in the form.

Then, wrap that form in a function. I'd do it like this:

Public Sub MyZoom(ctl As Control)
DoCmd.OpenForm "dlgMyZoom" , , , , , acDialog,ctl.Va lue
If Forms!dlgMyZoom .Tag <> "Cancel" Then
ctl = Forms!dlgMyZoom !txtMemo
End If
DoCmd.Close acForm, "dlgMyZoom"
End Sub

This would allow you to customize your zoom form to your heart's
content.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 12 '05 #7
I have found that if you add an AutoKeys macro, and add a Macro Name of +{F2},
this overrides the default Zoom behavior for Shift+F2. From there, you can
simply use the Screen methods to get the active control of the active form.
Add some error handling, so the form simply won't open when there's no current
form or current control, and I think that'll do it.

Using the AutoKeys is nice, in that you don't have to paste code into every
form, then maintain that code everywhere, and keep it in sync. My only worry
would be that I've seen ActiveForm fail, sometimes, but I've only seen that
symptom with shortcut menus, not with AutoKeys.

On Mon, 10 May 2004 18:06:50 GMT, "David W. Fenton"
<dX********@bwa y.net.invalid> wrote:
"Deano" <de*********@ho tmail.com> wrote in
news:nI******* ************@st ones.force9.net :
MGFoster wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
That is the default action of the Zoom box. You won't be able to
fix it.


Ah, that's a bit of a downer. I have a continuous form and each
record has a smallish textbox where the user can enter some notes.
These notes could be quite long hence the zoom box. I just
realised that you have to type continuously instead of being able
to hit enter to get a carriage return. Of course you can do this
at any time if you stay in the textbox. I think that's a bit
silly to be honest and doesn't offer a very friendly interface.

If you are using a Text Box & you want to be able to hit Enter
w/o moving to next field/record, you have to set the Text Box's
"Enter Key Behavior" (under the Properties dialog box Other tab)
to "New Line in Field."


Yes I think I must have this set up ok for me to be able to hit
enter and generate a new line successfully.

Is there an alternative to zooming? Or would i have to code up a
pop up form for the user to use (which sounds like alot work to
me...)


The ZoomBox is just a form in one of the wizard MDEs that ships with
Access.

You could replicate it yourself with a text box that has your
preferred enter key.

The way I'd do it is create the zoom form with an unbound text box
set to have your preferred Enter key behavior. Assume that you're
going to pass the form the data you want edited in the form's OnLoad
event. To do that, check if Me.Openargs = vbNullString or not. If it
doesn't, then put the value of Me.Openargs in the textbox on the
form. Then, for the form's CLOSE button, have it hide the form
instead of closing it. The way I handle this is that I make the
CANCEL button also hide the form, but it sets the form's .Tag
property to CANCEL. This leaves the form open after you're done with
it so that code that follows can process the values in the form.

Then, wrap that form in a function. I'd do it like this:

Public Sub MyZoom(ctl As Control)
DoCmd.OpenForm "dlgMyZoom" , , , , , acDialog,ctl.Va lue
If Forms!dlgMyZoom .Tag <> "Cancel" Then
ctl = Forms!dlgMyZoom !txtMemo
End If
DoCmd.Close acForm, "dlgMyZoom"
End Sub

This would allow you to customize your zoom form to your heart's
content.


Nov 12 '05 #8
David W. Fenton wrote:
"Deano" <de*********@ho tmail.com> wrote in
news:nI******** ***********@sto nes.force9.net:
MGFoster wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
That is the default action of the Zoom box. You won't be able to
fix it.


Ah, that's a bit of a downer. I have a continuous form and each
record has a smallish textbox where the user can enter some notes.
These notes could be quite long hence the zoom box. I just
realised that you have to type continuously instead of being able
to hit enter to get a carriage return. Of course you can do this
at any time if you stay in the textbox. I think that's a bit
silly to be honest and doesn't offer a very friendly interface.

If you are using a Text Box & you want to be able to hit Enter
w/o moving to next field/record, you have to set the Text Box's
"Enter Key Behavior" (under the Properties dialog box Other tab)
to "New Line in Field."


Yes I think I must have this set up ok for me to be able to hit
enter and generate a new line successfully.

Is there an alternative to zooming? Or would i have to code up a
pop up form for the user to use (which sounds like alot work to
me...)


The ZoomBox is just a form in one of the wizard MDEs that ships with
Access.

You could replicate it yourself with a text box that has your
preferred enter key.

The way I'd do it is create the zoom form with an unbound text box
set to have your preferred Enter key behavior. Assume that you're
going to pass the form the data you want edited in the form's OnLoad
event. To do that, check if Me.Openargs = vbNullString or not. If it
doesn't, then put the value of Me.Openargs in the textbox on the
form. Then, for the form's CLOSE button, have it hide the form
instead of closing it. The way I handle this is that I make the
CANCEL button also hide the form, but it sets the form's .Tag
property to CANCEL. This leaves the form open after you're done with
it so that code that follows can process the values in the form.

Then, wrap that form in a function. I'd do it like this:

Public Sub MyZoom(ctl As Control)
DoCmd.OpenForm "dlgMyZoom" , , , , , acDialog,ctl.Va lue
If Forms!dlgMyZoom .Tag <> "Cancel" Then
ctl = Forms!dlgMyZoom !txtMemo
End If
DoCmd.Close acForm, "dlgMyZoom"
End Sub

This would allow you to customize your zoom form to your heart's
content.


Sorry for not replying sooner but i've just tried implementing this as I
suddenly realised this could be quite useful.
When I call the MyZoom function what exactly am I passing to it?

Presumably the name of the textbox control that the user is double-clicking
on?

cheers
Martin

Nov 12 '05 #9
"Deano" <de*********@ho tmail.com> wrote in
news:L_******** ***********@sto nes.force9.net:
David W. Fenton wrote:

Then, wrap that form in a function. I'd do it like this:

Public Sub MyZoom(ctl As Control)
DoCmd.OpenForm "dlgMyZoom" , , , , , acDialog,ctl.Va lue
If Forms!dlgMyZoom .Tag <> "Cancel" Then
ctl = Forms!dlgMyZoom !txtMemo
End If
DoCmd.Close acForm, "dlgMyZoom"
End Sub

This would allow you to customize your zoom form to your heart's
content.


Sorry for not replying sooner but i've just tried implementing
this as I suddenly realised this could be quite useful.
When I call the MyZoom function what exactly am I passing to it?

Presumably the name of the textbox control that the user is
double-clicking on?


No, you're passing a control reference (since the parameter is of
type Control).

Thus:

Call ZoomBox (Me!txtFieldToB eEdited)

But do look at what Steve Jorgensen posted in response to my
recommendation. I don't do things that way, but he does have a good
point.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 12 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
3995
by: doomx | last post by:
I'm using SQL scripts to create and alter tables in my DB I want to know if it's possible to fill the description(like in the Create table UI) using these scripts. EX: CREATE TABLE( Pk_myPrimaryKey INTEGER CONSTRAINT pk PRIMARY KEY DESCRIPTION 'This is the primary key of the table',
2
5750
by: Kevin | last post by:
Thanks for the very quick response posting that I can use a memo datatype to store large amounts of text. I understand that I can turn on "Can Grow" for a memo type, but is there either a property or VB code that will allow the text box to expand vertically as the user adds lines, so that it isn't necessary to use the vertical scroll bar to view text above/below the displayed window? I'm looking for a sort of dynamic autosize.
3
6311
by: Susan | last post by:
AccessXP When I use the wizard to create a form, all the textboxes are created with the Enter Key Behaviour of "New Line In Field". When I create the form manually the Enter Key Behaviour is "Default". "New Line In Field" is undesirable because when I go to enter data in the field and then ptess <Enter>, rather than go to the next field, a carriage return is entered in the textbox and as the property says, Access goes to a new line in...
1
1404
by: ACaunter | last post by:
Hi all, I really am in desperate need of some code that can zoom in on an image. I don't want to just make the whole image bigger, i want to have a box ( <p> tag ) that is the zooming window... so the image is always the same size, the box is always the same size, and only when the box is moved over the image, the part of the image that is inside the box will get zoomed.. so it's like a lil magnifying glass that is being moved around...
9
5740
by: RMC | last post by:
Hello, I'm looking for a way to parse/format a memo field within a report. The Access 2000 database (application) has an equipment table that holds a memo field. Within the report, the memo field is printed within the detailed area. The problem is, the apllication is not setup properly, thus the users are entering data within the memo field as: location1 1/1/2005 1/1/2006
4
10163
by: =?Utf-8?B?U3BlZWR5?= | last post by:
Hi there, I am currently writing an application where one inspects images and annotates certain features. Thus, one has to zoom in (4x) and pan around. The features are marked with little red rectangles.The images are 2048x2048 pixels. It seems that I can find no efficient way to implement both zooming and panning. At present I have a panel with autoscroll set to true inside which there is
0
1024
by: sorab | last post by:
I hav created a bimap image at run time using graphics object in vb.net. i display that image in the picture box i have also implemented few mouse events on that image. e.g. I can draw lines with the mouse. Now, i have a problem with drawing the line with mouse when i zoom that image..... i made picturebox size mode as zoom and incresed its size to zoom in how will i be able to draw line with mouse even after zooming
2
1678
by: Sunfire | last post by:
I was wondering if there was a way to hit enter to insert blank lines while in the designer? I tried this but all it seems to want to do is insert code that really shouldn't be there. For example, I had a heading 1 centered on a page. Right under that I had some words in smaller print right under the heading. When I hit enter after the heading 1, it automatically put the text right below it in a <p></ptag. I don't want this sort of stuff to...
0
1618
by: johot | last post by:
I am currently creating a little photo application. In this application the user is able to zoom in the image and after zooming panning around inside the zoomed image with the mouse. The strange thing is that the first zoom is really slow, and so is the first panning. So if you zoom into an image it will first take some time, and when trying to pan the image around things will be really choppy. However if i zoom into the image even more, and...
0
9515
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10155
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9995
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9029
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5431
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5559
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4110
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2916
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.