这样写,会报错
Dim t = DBNUll.valueFormat(t, "yyyy-MM-dd HH:mm:ss")
要改成这样写
Dim t = DBNUll.valueIf Typeof t Is dbnull Then msgbox("不行啊")Else Format(t, "yyyy-MM-dd HH:mm:ss")End If