473,398 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

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.thanksMartin
Nov 12 '05 #1
10 4361
-----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:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

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

iQA/AwUBQJ5kPIechKqOuFEgEQKgiACfUrmf46p67g+vTlevtNxmPR W/NjwAn3VB
qOvkduRXe8M2YBOSWbRou6tM
=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.thanksMartin


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.thanksMartin


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.thanksMartin


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******@example.invalid> wrote in message
news:uo*****************************@40tude.net...
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.thanksMartin


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*********@hotmail.com> wrote in
news:nI*******************@stones.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.Value
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********@bway.net.invalid> wrote:
"Deano" <de*********@hotmail.com> wrote in
news:nI*******************@stones.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.Value
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*********@hotmail.com> wrote in
news:nI*******************@stones.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.Value
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*********@hotmail.com> wrote in
news:L_*******************@stones.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.Value
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!txtFieldToBeEdited)

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
David W. Fenton wrote:
"Deano" <de*********@hotmail.com> wrote in
news:L_*******************@stones.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.Value
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!txtFieldToBeEdited)

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.


Cheers I will have a look but i have no idea what Autokeys is so some
research is warranted.
Nov 12 '05 #11

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

Similar topics

8
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(...
2
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...
3
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...
1
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......
9
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...
4
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...
0
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...
2
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,...
0
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.