query1.SQL.Add('insert into 总览表 values(:当日花费总金额,:记录人,:记录日期)') ;
query1.ParamByName('当日花费总金额').AsString := edit1.Text;
query1.ParamByName('记录人').AsString := combobox1.Text;
query1.ParamByName('记录日期').AsDate := strtodate(edit2.Text);
错误提示:时间日期格式无效(null)',很奇怪怎么是空值......DEIT2里明明有显示2007-1-30的
query1.ParamByName('当日花费总金额').AsString := edit1.Text;
query1.ParamByName('记录人').AsString := combobox1.Text;
query1.ParamByName('记录日期').AsDate := strtodate(edit2.Text);
错误提示:时间日期格式无效(null)',很奇怪怎么是空值......DEIT2里明明有显示2007-1-30的
怎么看??
1.你看看你数据库是不是设置的日期类型
2.既然是日期类型为什么要用edit2.text?人家客户用的时候能一个一个的填写吗?就是一个一个的写,也是非常容易写错的!~DateTimePicker1是不是就这样让你给整下岗了?
3.既然你用的是EDIT.是不是你输入的时候不符号数据库的日期类型标准?