怎样给表添加空白记录?
我在表单“药品明细单”上创建了“添加”“保存”命令按钮,为什么我点击命令按钮“保存”后,保存在“药品明细”表上的新记录是在空白处添加的,而“型号”表,“出厂日期”表,“所属类别”表上的新纪录替换了以前的记录,怎样才能使他们也是在空白处添加呢?
这是添加代码:
appen blank
*给药品明细单添加空白记录*
thisform.commandgroup1.command6.caption="保存"
thisform.refresh()
这是保存代码:
do case
case thisform.commandgroup1.command6.caption="退出"
use
thisform.release
case thisform.commandgroup1.command6.caption="保存"
replace 药品明细.型号 with thisform.型号.value
replace 药品明细.药品名称 with thisform.药品名称.value
replace 药品明细.类别 with thisform.类别.value
replace 药品明细.药品报价 with thisform.药品报价.value
replace 药品明细.日期 with thisform.日期.value
replace 药品明细.核查人员 with thisform.核查人员.value
replace 药品明细.成分备注 with thisform.成分备注.value
replace 型号.型号 with thisform.型号.value
replace 出厂日期.日期 with thisform.日期.value
replace 所属类别.类别 with thisform.类别.value
thisform.commandgroup1.command6.caption="退出"
endcase