Office中国论坛/Access中国论坛
标题:
求助子窗体双击一条记录将其添加到另外一张表中
[打印本页]
作者:
closeyoureyes
时间:
2008-10-22 20:47
标题:
求助子窗体双击一条记录将其添加到另外一张表中
同一个主窗体中,在一个查询子窗体里,单击一个单元格,将该条记录添加到同一个主窗体下另一个表子窗体最后一条记录中!
Private Sub 货号_DblClick(Cancel As Integer)
'Forms![B商品销售]![A临时客户一销售表 子窗体]![销货日期] = Date
'Forms![B商品销售]![A临时客户一销售表 子窗体]![客户公司名称] = Me![客户公司名称]
'Forms![B商品销售]![A临时客户一销售表 子窗体]![客户名称] = Me![客户名称]
'Forms![B商品销售]![A临时客户一销售表 子窗体]![品名] = Me![品名]
'Forms![B商品销售]![A临时客户一销售表 子窗体]![货号] = Me![货号]
'Forms![B商品销售]![A临时客户一销售表 子窗体]![经手人] = Me![经手人]
'Forms![B商品销售]![A临时客户一销售表 子窗体]![单位] = Me![单位]
'Forms![B商品销售]![A临时客户一销售表 子窗体]![数量] = Me![数量]
'Forms![B商品销售]![A临时客户一销售表 子窗体]![销货价] = Me![销货价]
'Forms![B商品销售]![A临时客户一销售表 子窗体]![应收金额] = Me![应收金额]
'Forms![B商品销售]![A临时客户一销售表 子窗体]![实收现金] = Me![实收现金]
'Forms![B商品销售]![A临时客户一销售表 子窗体]![实收银行汇款] = Me![实收银行汇款]
'Forms![B商品销售]![A临时客户一销售表 子窗体]![季节] = Me![季节]
'Forms![B商品销售]![A临时客户一销售表 子窗体]![颜色] = Me![颜色]
'Forms![B商品销售]![A临时客户一销售表 子窗体]![仓库] = Me![仓库]
'Forms![B商品销售]![A临时客户一销售表 子窗体]![条码] = Me![条码]
'Forms![B商品销售]![A临时客户一销售表 子窗体]![供货商] = Me![供货商]
'Forms![B商品销售]![A临时客户一销售表 子窗体]![供货商业务员] = Me![供货商业务员]
'Forms![B商品销售]![A临时客户一销售表 子窗体]![税率] = Me![税率]
'Forms![B商品销售]![A临时客户一销售表 子窗体]![税额] = Me![税额]
'Forms![B商品销售]![A临时客户一销售表 子窗体]![不含税额] = Me![不含税额]
'Forms![B商品销售]![A临时客户一销售表 子窗体]![照片] = Me![照片]
End Sub
我写的代码如上,可是不能实现添加到 [A临时客户一销售表 子窗体] 最后一行的功能,请帮忙看看!
作者:
Henry D. Sy
时间:
2008-10-23 00:48
insert into 方便点
欢迎光临 Office中国论坛/Access中国论坛 (http://www.office-cn.net/)
Powered by Discuz! X3.3