adoquery2.Close;
adoquery2.SQL.Clear;
adoquery2.SQL.Add('select * from 记录 where 编号='+ ''''+a1.Text+'''' +'and 日期='+ ''''+a6.Text+''''+'and 班次='+ ''''+a8.Text+'''');
adoquery2.Open;
if ADOQuery2.RecordCount=0 then
exit
else
下班时间字段用当前时间替换
adoquery2.SQL.Clear;
adoquery2.SQL.Add('select * from 记录 where 编号='+ ''''+a1.Text+'''' +'and 日期='+ ''''+a6.Text+''''+'and 班次='+ ''''+a8.Text+'''');
adoquery2.Open;
if ADOQuery2.RecordCount=0 then
exit
else
下班时间字段用当前时间替换
解决方案 »
- *.pas 与 *.dfm的区别
- 通过SendMessage()如何发送‘Ctrl+鼠标左键’的组合消息啊???急!!!
- 删除记录时出错,用的是delete删除的
- 大家轻松一下,回忆一下当年在校找教室上自习......
- 有做過ado/mts/com+第9章例子的請進!
- 请解决我程序中出现的问题(此时我在线:2月13号7点开始)
- 如何使用ADODataset 实现用户登录?
- 請問excel裡的數據能不能直接導入程序的表格中,我用的數據庫是sql2000.控件是Ado,如果能,怎麼導法?主要是用戶提出初期數據太多. 謝謝各位
- 如何去除空格
- vb和delphi到底那个好?
- 程序员人生,如果你和我有同感,聊聊吧!
- 关于套打,怎么去除下面的文字?
begin
Close;
SQL.Clear;
SQL.Add('update 记录 set 下班时间=:xTime');
Parameters[0].value:=Now;
ExecSQL;
end;
begin
Close;
SQL.Clear;
SQL.Add('update 记录 set 下班时间=:xTime');
Parameters.ParamByName('xTime').Value := Now;
//Parameters.ParamValues['xTime'] := Now; //这样也可以
ExecSQL;
Close;
end;
begin
Close;
SQL.Clear;
SQL.Add('update 记录 set 下班时间=:Time');
Parameters[0].value:=Now;
ExecSQL;
end;