怎样才能随时把日期和时间动态加入到数据库中。 我试过用Time()可是不行啊! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 now() 现在看问题真的要动脑,看不明白啊?time函数不能用?不可能吧。^_^ tmpstr = "insert into cc(id,jdate,jtime,customerid,customername,address,employeeqj,cityid,cityname) values(" & _ Val(lblID.Caption) & "," & _ labeldate.Caption & "," & _ Time() & "," & _ TransSQLChar(Val(txtCustomer.Text)) & "," & _ TransSQLChar(txtCustomerName.Text) & "," & _ TransSQLChar(txtaddress1.Text) & "," & _ TransSQLChar(txtid.Text) & "," & _ TransSQLChar(Val(txtcityid.Text)) & "," & _ TransSQLChar(txtcityname.Text) & ")"提示是“语法错误,操作符丢失在查询表达式“16:54:32”中这个怎么解释? 之前那个贴都说了要用单引号,你又不信。你看回去吧,还有就是TransSQLChar不知是什么东东。^_^ 我的TransSQLChar函数就是你说的把字符串加上单引号。 把"""变成""""。这个函数没有错误。 问题解决了。 谢谢你提醒! 求教如何批量导入ACCESS数据 何如遍历一个文件夹内指定后缀类型的文件? 哪里有下dbgrid32.ocx? 当一个窗体上控件数量太多,窗体的高度超过了屏幕最大高度时,如何能让窗体以滚动条方式显示窗体上的控件! CIA.XPSuite.v3.0.4控件的发布问题,请高手光临指点 报表问题?在线等! 这句话错在哪儿? 怎样打开IE时加载我的程序? 请教一个vb、word和sql的问题 一个基础性问题,请大家示教!状态拦问题!! 关于collection,怎么取得总数 串口通信控件问题。 一个小时后回复
now()
Val(lblID.Caption) & "," & _
labeldate.Caption & "," & _
Time() & "," & _
TransSQLChar(Val(txtCustomer.Text)) & "," & _
TransSQLChar(txtCustomerName.Text) & "," & _
TransSQLChar(txtaddress1.Text) & "," & _
TransSQLChar(txtid.Text) & "," & _
TransSQLChar(Val(txtcityid.Text)) & "," & _
TransSQLChar(txtcityname.Text) & ")"提示是“语法错误,操作符丢失在查询表达式“16:54:32”中
这个怎么解释?
把"""变成""""。
这个函数没有错误。
问题解决了。
谢谢你提醒!