Quantcast
Channel: VBForums - Database Development
Viewing all articles
Browse latest Browse all 2918

VB: Storing and Retrieving Rich text format in Microsoft Access

$
0
0
Hello to ev'ry one,

I have made search through internet how to save richtextbox content to Access Database and retrieve it again, but till now I haven't found any solutions.

Here are a part of my code:

Code:

str = "INSERT INTO [Database](Word, Pronunciation, Occurence) VALUES (" & Me.TXT_WORD.Text & ", " & Me.TXT_DESCRIPTION.Rtf & ", " & Me.TXT_OCCURENCE.Text & ")"
Dim cmd As OleDbCommand = New OleDbCommand(str, myConnection)
cmd.ExecuteNonQuery()

For
Code:

Me.TXT_DESCRIPTION.Rtf
The text stored in MS Access is converted to Plain Text format.
May anyone can help me, please?

I use Microsoft Visual Studio Express 2013, Microsoft Access 2013.

Viewing all articles
Browse latest Browse all 2918

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>