赋值的时候的时候,修改
Case "文本" strkey = "'" & dr(tbid) & "'"
改成
Case "文本" strkey = "'" & dr(tbid).Tostring & "'"