|
8#
楼主 |
发表于 2003-10-17 22:14:00
|
只看该作者
Private Sub Import_Click()
Me.Refresh
If 文本7 = "" Or IsNull(文本7) Then
MsgBox "请输入成本中心代码!", vbOKOnly + vbInformation, "提示"
文本7.SetFocus
Else
DoCmd.SetWarnings False
DoCmd.RunSQL "delete * from Cost_Temp"
DoCmd.RunSQL "insert into Cost_Temp select Cost.* from Cost IN '\\cnshpdc\process sheet$\sapmmp.MDB'[Provider=Microsoft.Jet.OLEDB.4.0] where Cost_No='" & 文本7 & "'"
DoCmd.SetWarnings True
End If
Me.Requery
If (Me.复选94 = True) Then
Form.AllowEdits = False
Else
Me.AllowEdits = True
End If
End Sub
还是在temp里不能加入。但是当我把Me.Refresh注销后就能加入。但是会出现两行数据 |
|