|
本帖最后由 todaynew 于 2011-6-24 16:49 编辑
紫风 发表于 2011-6-24 12:18
我把文件上传上来,麻烦版主帮看一下,谢谢!
Private Sub cmd查询_Click()
....
STemp = "SELECT [tbl入库].* FROM [tbl入库] WHERE 入库ID =" & Nz(Me.入库号, 0)
rs.Open STemp, CurrentProject.Connection, adOpenKeyset, adLockOptimistic
If rs.RecordCount > 0 Then
With rs
Me.卸车单号 = ![卸车单号]
....
End With
End If
rs.Close
STemp = "SELECT [tbl卸货派工].* FROM [tbl卸货派工] WHERE 入库ID =" & Nz(Me.入库号, 0)
rs.Open STemp, CurrentProject.Connection, adOpenKeyset, adLockOptimistic
If rs.RecordCount > 0 Then
With rs
Me.预到数 = ![预到数]
.....
End With
End If
....
End Sub
此外,你如何保证同志们知晓入库号呢? |
|