vb标准表达式中数据类型不匹配
下面是VB指出错误源码错误的一整句:SetadoRs=adoCon.Execute("insertintotb_JT_QC(ID,OUT_NumID,OUT_KZX,OU...
下面是VB指出错误源码错误的一整句:
Set adoRs = adoCon.Execute("insert into tb_JT_QC(ID,OUT_NumID,OUT_KZX,OUT_name,OUT_JE,OUT_date,OUT_BZ,OUT_USER,OUT_USER_date) values(" & StrNum & ",'" & Text1(0).Text & "','" & Combo2.Text & "','" & Text1(1).Text & "','" & Text1(2).Text & "','" & Str(DTP_GX.Value) & "','" & Text1(3).Text & "','" & Name1 & "','" & Str(DTP_GX.Value) & "')") 展开
Set adoRs = adoCon.Execute("insert into tb_JT_QC(ID,OUT_NumID,OUT_KZX,OUT_name,OUT_JE,OUT_date,OUT_BZ,OUT_USER,OUT_USER_date) values(" & StrNum & ",'" & Text1(0).Text & "','" & Combo2.Text & "','" & Text1(1).Text & "','" & Text1(2).Text & "','" & Str(DTP_GX.Value) & "','" & Text1(3).Text & "','" & Name1 & "','" & Str(DTP_GX.Value) & "')") 展开
展开全部
OUT_date和OUT_USER_date这两个字段是什做滚弊么类备扮型呢?如果是日期型的,那么就要这样:
Set adoRs = adoCon.Execute("insert into tb_JT_QC(ID,OUT_NumID,OUT_KZX,OUT_name,OUT_JE,OUT_date,OUT_BZ,OUT_USER,OUT_USER_date) values(" & StrNum & ",'纯族" & Text1(0).Text & "','" & Combo2.Text & "','" & Text1(1).Text & "','" & Text1(2).Text & "',#" & DTP_GX.Value & "#,'" & Text1(3).Text & "','" & Name1 & "',#" & DTP_GX.Value & "#)")
Set adoRs = adoCon.Execute("insert into tb_JT_QC(ID,OUT_NumID,OUT_KZX,OUT_name,OUT_JE,OUT_date,OUT_BZ,OUT_USER,OUT_USER_date) values(" & StrNum & ",'纯族" & Text1(0).Text & "','" & Combo2.Text & "','" & Text1(1).Text & "','" & Text1(2).Text & "',#" & DTP_GX.Value & "#,'" & Text1(3).Text & "','" & Name1 & "',#" & DTP_GX.Value & "#)")
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询