一个sql中的insert问题
objcon.Open "MOLOT_SMS", "sa", ""
str = "insert MessageForProcessed TimeSent,PortNo,PhoneNo,SMSType,Body) values(`ss` ,`TSport`,`" & Trim(CmbPhont.Text) & " `,`1`,`" & Trim(TxtBody.Text) & "`)"
objcon.Execute Str
我想在timesend中加入我当前的日期加时间如 1999-02-03 12:20:12 下午
但我用date=now() time=now()
ss=date & time但execute是说我在字符串转换samalldate格式转换错误
注timesent在表中的是samlldate类型的,