Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Return code

Status
Not open for further replies.

KatGraham

Programmer
Feb 12, 2003
58
US
Does anyone know what the vb code for RETURN is?
 
If you have a funciton called

funxyz

then call a variable

funxyz

then when you call funxyz in another function it will return the value the variable funxyz has.
 
KatGraham,

If by RETURN you mean the carriage return you can use the VB constant vbCR or you could use the ASCII value of
Chr(13).

HTH,

Steve
 
chr(13) if you want the ASCII character or vbKeyReturn if you're looking at incoming key presses.
 
I don't want all the text to appear running. I would like a carriage return.

Why does this not work?

DoCmd.SendObject acSendNoObject, , acFormatRTF, "John.Smith@libertymutual.com", , , "Weekly JC File", "Amy please upload the weekly file and let me know when this is complete." & Chr(13) & "Please contact me with any questions. Thank you. The file name is located the following folder: \Reports\Adhoc\ABC\Completed Reports\Post Excpt Reports 2004\ABC DDMMYY to DDMMYY.pdf (document with this past Saturday's date)", False
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top