[英]c# access database amount of data error
我有一个Microsoft Access 2010数据库,我使用richtextbox将数据放入一行后有4个单词的文本格式化我得到一个错误,说“该字段太小,无法接受您尝试添加的数据量。请尝试插入或粘贴较少的数据“我确实将表格行设置为255个字符,而我只插入4个单词
Well, a richtextbox contains formatting information, so it will return a much longer text than what you see in the control. 好吧,richtextbox包含格式信息,因此它将返回比您在控件中看到的文本长得多的文本。
See this code for example: 请参阅此代码示例:
Option Compare Database
Option Explicit
Private Sub Detail_Click()
MsgBox Me.RichTextBox0.Value
End Sub
Private Sub Form_Load()
Me.RichTextBox0.Value = "Only four words really!"
End Sub
This will return: 这将返回:
{\rtf1\ansi\deff0\nouicompat{\fonttbl{\f0\fnil\fcharset0 MS Sans Serif;}}
{\*\generator Riched20 15.0.4481}{\*\mmathPr\mwrapIndent1440 }\viewkind4\uc1
\pard\f0\fs17\lang1033 Only four words really!
\par
\par }
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.