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

mutiple line text help !!

Status
Not open for further replies.

TRYP

Programmer
Jun 20, 2000
136
0
0
US
INSERT INTO tblTest ( the_Memo )
SELECT
[tbl_Data].[data_1] & ":" & [tbl_Data].[data_2]
& Chr(10) & Chr(13) &
[tbl_Data].[data_3] & ":" & [tbl_Data].[data_4]
AS Expr1
FROM tbl_Data;

IM TRYING TO RUN A QUERY LIKE THAT
TO GET THIS

DATA:data
DATA:data


in a textbox but im getting this...

name:keith||age:32


where the pipes above are non printables...?!!?!

help !!
-tryp
 
Carriage return (13) should go before linefeed (10). Switch your Chr's and it should work. I tested the following:
Code:
SELECT [A_UserID] & ":" & Chr(13) & Chr(10) & [A_First_Name] AS Special
FROM Attendee
 
I used JoeAtWorks tip (to get a bit of practice on the insert query), and it worked:

Code:
INSERT INTO tbl_Test ( [the_Memo] )
SELECT tbl_Data.data_1 & ":" & tbl_Data.data_2 & Chr(13) & Chr(10) & tbl_Data.data_3 & ":" & tbl_Data.data_4
FROM tbl_Data;

Pampers [afro]
Just let it go...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top