×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Chr() code for "CTRL+ENTER ket

Chr() code for "CTRL+ENTER ket

Chr() code for "CTRL+ENTER ket

(OP)
I am trying to combine (display)address data into a single TEXT box (similar to OUTLOOKS address box in contacts).

The problem is that I need a CHR() for CTRL+ENTER. CHR(13) does not work.  See below

Private Sub ZipCode_AfterUpdate()
[Text14].Value = Trim([Street].Value) & " " & ChrW(13) & Trim([City].Value) & ", " & Trim([State].Value) & "     " & Trim([ZipCode].Value)
End Sub

Also, does Access 2000 have an equiv to Excel's "PROPER" function.

Thanks for anyone's help

RE: Chr() code for "CTRL+ENTER ket

try &vbCR

RE: Chr() code for "CTRL+ENTER ket

(OP)
VBcr and VBKeyReturn do not work.  I need a way to send the equiv of pressing the 'CTRL' and "ENTER" keys.  There must be ansi (Chr$) or vb constant that will do this.

Hopefully, somebody knows.

RE: Chr() code for "CTRL+ENTER ket

This is how I get several lines of information into a textbox or even a lable.

dim str as string
str = "Hi there" & vbNewLine _
    & "How are you?" & vbNewLine _
    & "That's nice."
me.textbox = str
  or
me.lable.caption = str

Try it you will like it!

John

John A. Gilman
gms@uslink.net

RE: Chr() code for "CTRL+ENTER ket

You should be able to use the intrisic constants described above if you are using Access 95 or newer.  However, Access 2.0 had to user Chr(10) & Chr(13) to achieve the same as vbCrLf which is used today.  I believe vbNewLine provides an identical result as John said.

Steve King

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close