首页 相关文章 Access数据库中无效的字符字段的行为

Access数据库中无效的字符字段的行为

Dealing with Null strings in Access database fields

By default Access string fields contain NULL values unless a string value (including a blank string like "") has been assigned. When you read these fields using recordsets into VB string variables, you get a runtime type-mismatch error. The best way to deal with this problem is to use the built-in & operator to concatenate a blank string to each field as you read it. For example:

Dim DB As Database
Dim RS As Recordset
Dim sYear As String
Set DB = OpenDatabase("Biblio....[ 查看全文 ]

2016-02-19 标签:

Access数据库中无效的字符字段的行为的相关文章

手机页面
收藏网站 回到头部