Insert newline character in to Access databse

Please support our MS Access and FileMaker Pro advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved
Reply

Join Date: Jan 2009
Posts: 13
Reputation: tulsi_apr03 is an unknown quantity at this point 
Solved Threads: 0
tulsi_apr03 tulsi_apr03 is offline Offline
Newbie Poster

Insert newline character in to Access databse

 
0
  #1
Mar 9th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 2
Reputation: EraserveAP is an unknown quantity at this point 
Solved Threads: 1
EraserveAP EraserveAP is offline Offline
Newbie Poster

Re: Insert newline character in to Access databse

 
0
  #2
Mar 24th, 2009
Originally Posted by tulsi_apr03 View Post
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.
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 13
Reputation: tulsi_apr03 is an unknown quantity at this point 
Solved Threads: 0
tulsi_apr03 tulsi_apr03 is offline Offline
Newbie Poster

Re: Insert newline character in to Access databse

 
0
  #3
Mar 24th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 1
Reputation: wjjkobrien is an unknown quantity at this point 
Solved Threads: 1
wjjkobrien wjjkobrien is offline Offline
Newbie Poster

Re: Insert newline character in to Access databse

 
0
  #4
Jun 11th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 13
Reputation: tulsi_apr03 is an unknown quantity at this point 
Solved Threads: 0
tulsi_apr03 tulsi_apr03 is offline Offline
Newbie Poster

Re: Insert newline character in to Access databse

 
0
  #5
Jun 17th, 2009
it is working fine. Inserted text was not grater than 255 chars. I took memo instead of text. k thank u
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the MS Access and FileMaker Pro Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC