473,396 Members | 1,772 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,396 software developers and data experts.

Enter Key Behaviour

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 the
field. How do I get the wizard to make the Enter Key Behaviour "Default" so
when I press <Enter> I go to the next field?

The Enter Key Behaviour property is in properties under the Other tab.

Thank you!

Susan
Nov 13 '05 #1
3 6285
The normal bivouac is that for regular fields, you get "default".

for memo fields, you get "New line in field". This decision by the wizard
makes sense to me since when you use a memo field, you are likely to have a
lot of text, and likely multiple lines of text...

Now, in your case, is it possible that these fields are of a type memo
field? (this likely very wrong on your case...as you do NOT want to use a
memo field unless necessary). Memo fields can't be indexed for example...

I would check your field types in the table design, as memo fields always
defaulted new line when created by the wizard....

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com
http://www.members.shaw.ca/AlbertKallal
Nov 13 '05 #2
Thanks for your response!

I'm not using memo fields but your response led me to the answer. After a
little experimenting, here is what I found. You can set the default field
size for text data type under Tools - Options - Tables. Of course you can
set the field size in tables design view to whatever you want. If you set
the default to anything over 60 in Tools - Options - Tables and leave it at
that in your text fields, when you use the form wizard it sets the Enter Key
Behaviour to "New Line In Field". Or if you set the default in Tools -
Options -Tables to under 60 but in table design you set the field size to
anything over 60 for text data types, again the form wizard sets the Enter
Key Behaviour to "New Line In Field".

Now you may not readily notice the effect this has in a form created by the
form wizard! If during the creation of the form you create a textbox of say
height .1667 and you tab out of the textbox during testing, you see no
effect. However you give the app to a user and for whatever reason he makes
an entry in the textbox then presses the <Enter> key, his entry disappears.
He then comes back to you complaining of this strange behaviour. If you are
like me (before I got your response and did some investigating) you scratch
your head and wonder what is going on. Thanks to you I discovered that
pressing the <Enter> key added a carriage return and the original entry
scrolled off the screen to make room for the continuation of the user's data
entry just the same as if he had pressed Control - Enter. This can be a
"Gotcha" if you are not aware that this will happen!!

Susan
"Albert D. Kallal" <ka****@msn.com> wrote in message
news:tAxOe.290227$s54.176595@pd7tw2no...
The normal bivouac is that for regular fields, you get "default".

for memo fields, you get "New line in field". This decision by the wizard
makes sense to me since when you use a memo field, you are likely to have
a lot of text, and likely multiple lines of text...

Now, in your case, is it possible that these fields are of a type memo
field? (this likely very wrong on your case...as you do NOT want to use a
memo field unless necessary). Memo fields can't be indexed for example...

I would check your field types in the table design, as memo fields always
defaulted new line when created by the wizard....

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com
http://www.members.shaw.ca/AlbertKallal

Nov 13 '05 #3
"Susan" <no*******@me.please> wrote in message
news:4z*************@newsread3.news.atl.earthlink. net...
Thanks for your response!


And, a very nice thank you back for sharing your discovery....

Now we know!!
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com
http://www.members.shaw.ca/AlbertKallal
Nov 13 '05 #4

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

Similar topics

11
by: Denis Hierstein | last post by:
I need a function, witch make a break in a for-loop and wait for the <enter>-key ... when I use Pascal I just use the Read; or the ReadLn;-function, then the loop stop as long as the user push the...
6
by: CJM | last post by:
Can somebody clarify if/how/when a simple form is submitted when the <Enter> key is pressed? As I understood it, if you have a form with a single submit button, if enter is pressed, the form...
7
by: (Pete Cresswell) | last post by:
I've got KeyDown coding and it fires when other keys are pressed, but when Enter is pressed, nothing. I'd like to support the (standard?) Windows behavior of executing DblClick processing when...
1
by: Matthew Wieder | last post by:
Hi - I wanted to capture the enter button on a form since I have a datagrid with the first column being a delete button and if someone hits enter it deletes the first record. I coded: private...
9
by: VJ | last post by:
I have a window were I display a bunch of Labels. A click event is attached for each label, when clicked it will display a edit box i.e textbox. If the enter key is pressed in the textbox I want to...
3
by: tanya | last post by:
I have a page with one form. I have one textbox in the page. I call a client-side function on the OnKeyUp event of the textbox. This function looks at the keycode of the keyup event on the textbox...
0
by: Tom Edelbrok | last post by:
I'm using VS 2005 to develop an intranet asp.net web application and I get a weird situation. If I start out with any ASPX page that contains an ImageButton control followed by a TextBox control,...
8
by: Jeff | last post by:
A client wants a press of the Enter key in a field on a continuous form to grab the value of that field from the previous record. But if they have typed a value and then hit Enter it shouldn't. ...
24
by: MichaelK | last post by:
Who knows how to prevent submitting a form on the press Enter button before all fields on the form are filled up. People just enter the first field hit Enter and it submits the form and doing...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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,...

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.