|
2#
楼主 |
发表于 2009-7-9 12:21:23
|
只看该作者
不好意思,这个问题不应该问。我自己解出来了(看来水平还有待提高啊)。
Private Sub Addrecord_Click()
Dim rs As New ADODB.Recordset
Dim strsql As String
strsql = "select * from [Material Issue]"
rs.Open strsql, CurrentProject.Connection, adOpenKeyset, adLockOptimistic '´ò¿ª¼Ç¼¼¯
If IsNull(Me.[Storage bin].Value) = False And IsNull(Me.[Issue Qty].Value) = False Then
rs.AddNew
rs("Plant") = Me.Plant.Value
rs("Area") = Me.Area.Value
rs("Storage bin") = Me.[Storage bin].Value
rs("SAP No") = Me.SAP_No.Value
rs("Material") = Me.Material.Value
rs("Spec") = Me.Spec.Value
rs("Quantity") = Me.PickQty.Value
rs("Unit") = Me.Unit.Value
rs.Update
Me.List0.Requery
End If
rs.Close
End Sub |
|