18d8e How to go to new line in code "String"
Sign Up |  Live StatsLive Stats    Articles 37,342| Comments 177,336| Members 19,420, Newest Talia| Online 536
Home Contact
 (Forgotten?): 
    Sikhism
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Click Here to Register/Sign Up Daily Hukamnama Member Blogs Downloads Website Navigation Help Fonts Tags
Sikh Philosophy Network » Sikh Philosophy Network » Current News » Information Technology » How to go to new line in code "String"

How to go to new line in code "String"

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 115 USD (23%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
"On Click" from Button won't run code in Access 2007 (2000 db) st Information Technology 2 28-Jul-2006 08:25 AM
"Cloning" a control and its event code cefrancke@yahoo.com Information Technology 4 28-Jul-2006 08:15 AM
What is the "From" line, above the "To" "Subject" lines, for? injun2 Information Technology 3 28-Jul-2006 08:09 AM
How can I check if a field "contains" a string? CVoelker Information Technology 5 28-Jul-2006 08:07 AM
My code isn't working for "show last" dogmelissa Information Technology 1 28-Jul-2006 08:02 AM


Tags
code, line, quotstringquot, string
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 04-Nov-2005, 15:19 PM
Barry's Avatar Barry
Guest
 
Posts: n/a
   
   
How to go to new line in code "String"

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
Hi,
i am writing code in VB to send an email to a distribution list which will
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/6592-how-go-new-line-code-string.html
then send an email including information that has just been entered in the
event log.

DoCmd.SendObject acReport, "EVENT - Email job event",
"SnapshotFormat(*.snp)", "LIS", "", , "Event for" & " " &
Forms![EventLog]![chrJobname], Forms![EventLog]![chrJobNoID] _
& Forms![EventLog]![chrJobAddress], False
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6592

My problem here is that i want to place information about the job in the
message text of the email but i can not go to a new line in the text. I can
only get the text to read straight accross one line. I need to go to new
lines for the job address

Can anyone help me as this has been plaguing me for weeks now? thanks in
advance....


Got anything to share on This Topic? Why not share your immediate thoughts/reaction with us! Login Now! or Sign Up Today! to share your views... Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-Nov-2005, 15:19 PM
Ofer's Avatar Ofer
Guest
 
Posts: n/a
   
   
RE: How to go to new line in code "String"

I can't try it now, before I'm posting that, but try to add chr(13) where you
want the new line to start

"My message start here" & chr(13) & "and start a new line"
--
If I answered your question, please mark it as an answer. That way, it will
stay saved for a longer time, so other can benefit from it.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6592

Good luck



"Barry" wrote:

> Hi,
> i am writing code in VB to send an email to a distribution list which will
> then send an email including information that has just been entered in the
> event log.
>
> DoCmd.SendObject acReport, "EVENT - Email job event",
> "SnapshotFormat(*.snp)", "LIS", "", , "Event for" & " " &
> Forms![EventLog]![chrJobname], Forms![EventLog]![chrJobNoID] _
> & Forms![EventLog]![chrJobAddress], False
>
> My problem here is that i want to place information about the job in the
> message text of the email but i can not go to a new line in the text. I can
> only get the text to read straight accross one line. I need to go to new
> lines for the job address
>
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6592
> Can anyone help me as this has been plaguing me for weeks now? thanks in
> advance....

Reply With Quote
  #3 (permalink)  
Old 04-Nov-2005, 15:19 PM
Barry's Avatar Barry
Guest
 
Posts: n/a
   
   
RE: How to go to new line in code "String"

Thanks that worked great, my only problem now is that the code is so long in
the VB window so i have to scroll to read it all. I know you can use the "_"
in the code to go to a new line of code but im not sure exactly how this
works. Can you help me

"Ofer" wrote:

> I can't try it now, before I'm posting that, but try to add chr(13) where you
> want the new line to start
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6592
>
> "My message start here" & chr(13) & "and start a new line"
> --
> If I answered your question, please mark it as an answer. That way, it will
> stay saved for a longer time, so other can benefit from it.
>
> Good luck
>
>
>
> "Barry" wrote:
>
> > Hi,
> > i am writing code in VB to send an email to a distribution list which will
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6592
> > then send an email including information that has just been entered in the
> > event log.
> >
> > DoCmd.SendObject acReport, "EVENT - Email job event",
> > "SnapshotFormat(*.snp)", "LIS", "", , "Event for" & " " &
> > Forms![EventLog]![chrJobname], Forms![EventLog]![chrJobNoID] _
> > & Forms![EventLog]![chrJobAddress], False
> >
> > My problem here is that i want to place information about the job in the
> > message text of the email but i can not go to a new line in the text. I can
> > only get the text to read straight accross one line. I need to go to new
> > lines for the job address
> >
> > Can anyone help me as this has been plaguing me for weeks now? thanks in
> > advance....

Reply With Quote
  #4 (permalink)  
Old 04-Nov-2005, 15:19 PM
Ofer's Avatar Ofer
Guest
 
Posts: n/a
   
   
RE: How to go to new line in code "String"

Example

Dim MyStr as String

MyStr = "Start of string " & _
"Continue of string " & chr(13) & _
"continue in a new line " & _
"continue second line and end of string"
--
If I answered your question, please mark it as an answer. That way, it will
stay saved for a longer time, so other can benefit from it.

Good luck



"Barry" wrote:

> Thanks that worked great, my only problem now is that the code is so long in
> the VB window so i have to scroll to read it all. I know you can use the "_"
> in the code to go to a new line of code but im not sure exactly how this
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6592
> works. Can you help me
>
> "Ofer" wrote:
>
> > I can't try it now, before I'm posting that, but try to add chr(13) where you
> > want the new line to start
> >
> > "My message start here" & chr(13) & "and start a new line"
> > --
> > If I answered your question, please mark it as an answer. That way, it will
> > stay saved for a longer time, so other can benefit from it.
> >
> > Good luck
> >
> >
> >
> > "Barry" wrote:
> >
> > > Hi,
> > > i am writing code in VB to send an email to a distribution list which will
> > > then send an email including information that has just been entered in the
> > > event log.
> > >
> > > DoCmd.SendObject acReport, "EVENT - Email job event",
> > > "SnapshotFormat(*.snp)", "LIS", "", , "Event for" & " " &
> > > Forms![EventLog]![chrJobname], Forms![EventLog]![chrJobNoID] _
> > > & Forms![EventLog]![chrJobAddress], False
> > >
> > > My problem here is that i want to place information about the job in the
> > > message text of the email but i can not go to a new line in the text. I can
> > > only get the text to read straight accross one line. I need to go to new
> > > lines for the job address
> > >
> > > Can anyone help me as this has been plaguing me for weeks now? thanks in
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6592
> > > advance....

Reply With Quote
  #5 (permalink)  
Old 04-Nov-2005, 15:19 PM
Barry's Avatar Barry
Guest
 
Posts: n/a
   
   
RE: How to go to new line in code "String"

Thanks Ofer

"Ofer" wrote:

> Example
>
> Dim MyStr as String
>
> MyStr = "Start of string " & _
> "Continue of string " & chr(13) & _
> "continue in a new line " & _
> "continue second line and end of string"
> --
> If I answered your question, please mark it as an answer. That way, it will
> stay saved for a longer time, so other can benefit from it.
>
> Good luck
>
>
>
> "Barry" wrote:
>
> > Thanks that worked great, my only problem now is that the code is so long in
> > the VB window so i have to scroll to read it all. I know you can use the "_"
> > in the code to go to a new line of code but im not sure exactly how this
> > works. Can you help me
> >
> > "Ofer" wrote:
> >
> > > I can't try it now, before I'm posting that, but try to add chr(13) where you
> > > want the new line to start
> > >
> > > "My message start here" & chr(13) & "and start a new line"
> > > --
> > > If I answered your question, please mark it as an answer. That way, it will
> > > stay saved for a longer time, so other can benefit from it.
> > >
> > > Good luck
> > >
> > >
> > >
> > > "Barry" wrote:
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6592
> > >
> > > > Hi,
> > > > i am writing code in VB to send an email to a distribution list which will
> > > > then send an email including information that has just been entered in the
> > > > event log.
> > > >
> > > > DoCmd.SendObject acReport, "EVENT - Email job event",
> > > > "SnapshotFormat(*.snp)", "LIS", "", , "Event for" & " " &
> > > > Forms![EventLog]![chrJobname], Forms![EventLog]![chrJobNoID] _
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6592
> > > > & Forms![EventLog]![chrJobAddress], False
> > > >
> > > > My problem here is that i want to place information about the job in the
> > > > message text of the email but i can not go to a new line in the text. I can
> > > > only get the text to read straight accross one line. I need to go to new
> > > > lines for the job address
> > > >
> > > > Can anyone help me as this has been plaguing me for weeks now? thanks in
> > > > advance....

Reply With Quote
  #6 (permalink)  
Old 04-Nov-2005, 15:19 PM
Douglas J Steele's Avatar Douglas J Steele
Guest
 
Posts: n/a
   
   
Re: How to go to new line in code "String"

  Donate Today!  
Actually, VBA normally requires that you use both Chr(13) (carriage return)
AND Chr(10) (line feed), in that order. Alternatively, in code (i.e.: not in
queries), you can use the intrinsic constant vbCrLf

"My message start here" & chr(13) & chr(10) & _
"and start a new line"

or

"My message start here" & vbCrLf & _
"and start a new line"


--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"Ofer" wrote in message
news:C91520B7-835C-44FE-9B8D-6E26E16CE504@microsoft.com...
> I can't try it now, before I'm posting that, but try to add chr(13) where

you
> want the new line to start
>
> "My message start here" & chr(13) & "and start a new line"
> --
> If I answered your question, please mark it as an answer. That way, it

will
> stay saved for a longer time, so other can benefit from it.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6592
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6592
>
> Good luck
>
>
>
> "Barry" wrote:
>
> > Hi,
> > i am writing code in VB to send an email to a distribution list which

will
> > then send an email including information that has just been entered in

the
> > event log.
> >
> > DoCmd.SendObject acReport, "EVENT - Email job event",
> > "SnapshotFormat(*.snp)", "LIS", "", , "Event for" & " " &
> > Forms![EventLog]![chrJobname], Forms![EventLog]![chrJobNoID] _
> > & Forms![EventLog]![chrJobAddress], False
> >
> > My problem here is that i want to place information about the job in the
> > message text of the email but i can not go to a new line in the text. I

can
> > only get the text to read straight accross one line. I need to go to new
> > lines for the job address
> >
> > Can anyone help me as this has been plaguing me for weeks now? thanks in
> > advance....



Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

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 On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Active Discussions
Woolwich Killing: The...
Today 01:26 AM
6 Replies, 95 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Today 00:36 AM
182 Replies, 4,573 Views
Rochester Gurdwara...
Today 00:24 AM
1 Replies, 24 Views
How does Sikhi help you...
Yesterday 23:30 PM
38 Replies, 1,060 Views
Panjabi Alphabet Resource
Yesterday 23:15 PM
12 Replies, 6,548 Views
Transgenderism ... Right...
Yesterday 22:55 PM
30 Replies, 1,340 Views
Biography of a Scholar:...
Yesterday 22:53 PM
1 Replies, 37 Views
Dusting The Web
Yesterday 22:25 PM
0 Replies, 23 Views
How Pure the Tongue? New...
Yesterday 21:29 PM
0 Replies, 39 Views
Stockholm riots throw...
Yesterday 21:14 PM
1 Replies, 27 Views
Biography of a Scholar:...
Yesterday 18:59 PM
2 Replies, 164 Views
Request for assistance...
By Ishna
Yesterday 18:46 PM
11 Replies, 158 Views
Occultism - Rejection in...
Yesterday 08:44 AM
62 Replies, 2,688 Views
‘Bigoted’ Facebook...
Yesterday 08:32 AM
1 Replies, 78 Views
Australia mulls allowing...
Yesterday 07:30 AM
0 Replies, 65 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 01:28 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.51611 seconds with 32 queries
0