Connecting Tech Pros Worldwide Help | Site Map

Line Return

  #1  
Old November 12th, 2005, 06:18 PM
Mark
Guest
 
Posts: n/a
Is it possible to enter a line return into any other field other than text (such
as number, currency or date/time)?

How can a user be prevented from entering a line return into a field?

Thanks!

Mark



  #2  
Old November 12th, 2005, 06:18 PM
Marshall Barton
Guest
 
Posts: n/a

re: Line Return


Mark wrote:
[color=blue]
>Is it possible to enter a line return into any other field other than text (such
>as number, currency or date/time)?[/color]


You could have just tried it.

Numeric and DateTime fields will not accept a new line.

--
Marsh
MVP [MS Access]
  #3  
Old November 12th, 2005, 06:18 PM
Mark
Guest
 
Posts: n/a

re: Line Return


Marsh,

I appreciate you responding to my post!

I did try it before posting and found what you said. However, it's important
enough that I wanted an independent confirmation. I assume you regard a currency
field as a numeric field.

Can you respond to the second question in my post ----
<<How can a user be prevented from entering a line return into a field?>>

Thanks!

Mark

"Marshall Barton" <marshbarton@wowway.com> wrote in message
news:pmgsuvsqlnh239mgd475p2j8t4eongc6t2@4ax.com...[color=blue]
> Mark wrote:
>[color=green]
> >Is it possible to enter a line return into any other field other than text[/color][/color]
(such[color=blue][color=green]
> >as number, currency or date/time)?[/color]
>
>
> You could have just tried it.
>
> Numeric and DateTime fields will not accept a new line.
>
> --
> Marsh
> MVP [MS Access][/color]


  #4  
Old November 12th, 2005, 06:18 PM
KeejToe
Guest
 
Posts: n/a

re: Line Return


If you position your cursor at the end of the field, and then hit <control-enter>, a line
feed wil be inserted, even in a date or numeric field. You can scroll between the lines
with the <up> or <down> keys. Try it.

To prevent, u can use an input mask or check the keycode in the KeyDown event.

Grtz,
K



"Marshall Barton" <marshbarton@wowway.com> wrote in message
news:pmgsuvsqlnh239mgd475p2j8t4eongc6t2@4ax.com...[color=blue]
> Mark wrote:
>[color=green]
> >Is it possible to enter a line return into any other field other than text (such
> >as number, currency or date/time)?[/color]
>
>
> You could have just tried it.
>
> Numeric and DateTime fields will not accept a new line.
>
> --
> Marsh
> MVP [MS Access][/color]


  #5  
Old November 12th, 2005, 06:18 PM
Marshall Barton
Guest
 
Posts: n/a

re: Line Return


Mark wrote:[color=blue]
>I did try it before posting and found what you said.
>However, it's important enough that I wanted an
>independent confirmation.[/color]

I understand.
[color=blue]
>I assume you regard a currency
>field as a numeric field.[/color]

Yes
[color=blue]
>Can you respond to the second question in my post ----
><<How can a user be prevented from entering a line return into a field?>>[/color]

Add a validation rule to the table's field:
Not Like "*" & Chr(13) & Chr(10) & "*"
--
Marsh
MVP [MS Access]


[color=blue]
>[color=green]
>> Mark wrote:
>>[color=darkred]
>> >Is it possible to enter a line return into any other field other than text
>> >(such as number, currency or date/time)?[/color]
>>
>>[/color]
>"Marshall Barton" wrote[color=green]
>> You could have just tried it.
>>
>> Numeric and DateTime fields will not accept a new line.[/color][/color]
  #6  
Old November 12th, 2005, 06:18 PM
Marshall Barton
Guest
 
Posts: n/a

re: Line Return


KeejToe wrote:
[color=blue]
>If you position your cursor at the end of the field, and then hit <control-enter>, a line
>feed wil be inserted, even in a date or numeric field. You can scroll between the lines
>with the <up> or <down> keys. Try it.[/color]


When I try it in A97 and AXP, I can enter <ctrl+enter> on a
numeric or date field but I can not save the record with the
new line in any of those fields.
--
Marsh
MVP [MS Access]


[color=blue][color=green][color=darkred]
>> >Is it possible to enter a line return into any other field other than text (such
>> >as number, currency or date/time)?[/color]
>>
>>[/color]
>"Marshall Barton" wrote[color=green]
>> You could have just tried it.
>>
>> Numeric and DateTime fields will not accept a new line.[/color][/color]

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to avoid line return when using python -c 'print "foo"' TP answers 1 July 18th, 2008 10:25 PM
proc_open problem: \n translates to Windows-style line return \r\n Daniel Klein answers 0 February 11th, 2008 07:55 PM
C# line return character Jason Huang answers 5 October 16th, 2006 07:05 PM
Writing to text files ... "overload" Alan Searle answers 5 June 17th, 2006 08:25 AM