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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Replace "," with a carriage return in a fucntion dec

Status
Not open for further replies.

gooseriver

IS-IT--Management
Aug 4, 2006
93
CA
In Access 2000 in a module I have the following:

Function Tes(pTd1 As String, _
Optional pTd2 As String = ",") _
As String

I want to replace the "," with a carriage return. I run a query that calls this fucntion... I know this is simple but just cannot figure it out...

 




Hi,
Code:
Function Tes(pTd1 As String, _
        Optional pTd2 As String = [b]vbcr[/b]) _
            As String

Skip,

[glasses] When a diminutive clarvoyant had disappeared from detention, headlines read...
Small Medium at Large[tongue]
 
When I use vbcr it places the square which indicates Carriage Retunr but when I run a report against it the report will show the carriage return without actually using the carriage return.
 



try vblf instead.

Skip,

[glasses] When a diminutive clarvoyant had disappeared from detention, headlines read...
Small Medium at Large[tongue]
 
Man oh man.. same thing shows as 11square22square33 when connecting the Access Report to the query. However when I copied the result and tried to paste it to this reply, the numbers were entered an the next line (correct)... What is going on?
 
what about & Chr(13) & Chr(10)&

How can I add this ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top