问题1,如何阻止相同记录添加到子窗体数据表中,
帮助中搜索“主键”
问题2,当要导入的物料编号与表内“物料信息表”中有相同时,导入到表中,其次进行二次查询!如下图详解!
不好意思,没看懂。
ACMAIN_CHM 发表于 2009-8-31 08:54
1 双击时加一验证
dim rs as new adodb.recordset
rs.open "select * from 物料信息表 where 条件",cnn
if rs.recordcount>=1 then
传输
endif
2 同样的方法
dim rs as new adodb.recordset
rs.open "sele ...
djt 发表于 2009-8-31 12:34
按照你的思路写的
Private Sub 采购单号_DblClick(Cancel As Integer)
Dim Rs As New ADODB.Recordset
Dim Conn As New ADODB.Connection
Set Conn = CurrentProject.Connection
Dim Sql As String
Sql = "sel ...
djt 发表于 2009-8-31 16:18
能用类模块,应该可以自己改代码了
Private Sub 采购单号_DblClick(Cancel As Integer)
Dim Rs As New ADODB.Recordset
Dim Conn As New ADODB.Connection
Set Conn = CurrentProject.Connection
Dim Sql As St ...
djt 发表于 2009-9-1 08:54
欢迎光临 Office中国论坛/Access中国论坛 (http://www.office-cn.net/) | Powered by Discuz! X3.3 |