Connecting Tech Pros Worldwide Help | Site Map

Line Return

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 05:18 PM
Mark
Guest
 
Posts: n/a
Default Line Return

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, 05:18 PM
Marshall Barton
Guest
 
Posts: n/a
Default 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, 05:18 PM
Mark
Guest
 
Posts: n/a
Default 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, 05:18 PM
KeejToe
Guest
 
Posts: n/a
Default 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, 05:18 PM
Marshall Barton
Guest
 
Posts: n/a
Default 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, 05:18 PM
Marshall Barton
Guest
 
Posts: n/a
Default 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]

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.