E
EMILYTAN via AccessMonster.com
Here are the following code:
When I click the save button, it will saved for once. After saving, when I
want to click next record, I will show message like creating duplicate record.
..
Besides, I can't even edit my record. The same message appear...
Private Sub cmdSave_Click()
Dim rst As Recordset
Set rst = CurrentDb.OpenRecordset("select * from Quantity")
rst.Edit
rst!Bil = Bil
rst!PartNumber = PartNumber
rst!InRemarks = InRemarks
rst!InDate = InDate
rst!OutRemarks = OutRemarks
rst!OutDate = OutDate
rst!Comment = Comment
rst!InQty = InQty
rst!OutQty = OutQty
rst.Update
rst.Close
Set rst = Nothing
End Sub
When I click the save button, it will saved for once. After saving, when I
want to click next record, I will show message like creating duplicate record.
..
Besides, I can't even edit my record. The same message appear...
Private Sub cmdSave_Click()
Dim rst As Recordset
Set rst = CurrentDb.OpenRecordset("select * from Quantity")
rst.Edit
rst!Bil = Bil
rst!PartNumber = PartNumber
rst!InRemarks = InRemarks
rst!InDate = InDate
rst!OutRemarks = OutRemarks
rst!OutDate = OutDate
rst!Comment = Comment
rst!InQty = InQty
rst!OutQty = OutQty
rst.Update
rst.Close
Set rst = Nothing
End Sub