DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   MS Access and FileMaker Pro (http://www.daniweb.com/forums/forum128.html)
-   -   Insert newline character in to Access databse (http://www.daniweb.com/forums/thread180628.html)

tulsi_apr03 Mar 9th, 2009 2:47 am
Insert newline character in to Access databse
 
In my VB6 project i have a text area field, iwant to insert data which i give in that text area wants to insert into Access database. For that which data type i need to take for that column.

1) If i take Memo or text as datatype: only singleline will be inserted .not all the lines.

How am i insert entire document in the database through VB6 form that contains textarea

EraserveAP Mar 24th, 2009 12:32 am
Re: Insert newline character in to Access databse
 
Quote:

Originally Posted by tulsi_apr03 (Post 821236)
In my VB6 project i have a text area field, iwant to insert data which i give in that text area wants to insert into Access database. For that which data type i need to take for that column.

1) If i take Memo or text as datatype: only singleline will be inserted .not all the lines.

How am i insert entire document in the database through VB6 form that contains textarea

You can use "Some text" & vbCrLf & "Some more text". This will cause "Some more text" to appear in a new line. This should work for both Memo and Text data types.

tulsi_apr03 Mar 24th, 2009 6:26 am
Re: Insert newline character in to Access databse
 
sorry for my question,
im inserting large data into MS Access database from vb text area, so if i opened database im able to see only single line thats it , so i thought next line was not inserted into database.

again im retrieving tha same data then the entire data was displayed line by line .
thank u for your reply

wjjkobrien Jun 11th, 2009 11:37 am
Re: Insert newline character in to Access databse
 
you can not concatinate text into a memo field, after 255 characters it will accept no more input, this is an access deficiency.
dimension BUCKET as a string, as you go thru your code you can put all of the text strings in as needed. at the end of your code dump BUCKET into the memo field.

tulsi_apr03 Jun 17th, 2009 2:40 am
Re: Insert newline character in to Access databse
 
it is working fine. Inserted text was not grater than 255 chars. I took memo instead of text. k thank u


All times are GMT -4. The time now is 10:32 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC