我试过用Time()可是不行啊!

解决方案 »

  1.   


        now()
      

  2.   

    现在看问题真的要动脑,看不明白啊?time函数不能用?不可能吧。^_^
      

  3.   

    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”中
    这个怎么解释?
      

  4.   

    之前那个贴都说了要用单引号,你又不信。你看回去吧,还有就是TransSQLChar不知是什么东东。^_^
      

  5.   

    我的TransSQLChar函数就是你说的把字符串加上单引号。
      把"""变成""""。
    这个函数没有错误。
      问题解决了。
       谢谢你提醒!