I have this code but it does not duplicate the record, how do i get it to duplicate a record?
Set rs = db.OpenRecordset("SELECT * FROM CustomerOrder WHERE(Product = """ & Me.Product & """)")
If rs.EOF Then
With rs
.AddNew
.Fields("Product") = Me.Product.Value
.Fields("Guilders") = Me.Guilders.Value
.Update
.Close
End With
Else
MsgBox "ok"
End If
Thanks
Set rs = db.OpenRecordset("SELECT * FROM CustomerOrder WHERE(Product = """ & Me.Product & """)")
If rs.EOF Then
With rs
.AddNew
.Fields("Product") = Me.Product.Value
.Fields("Guilders") = Me.Guilders.Value
.Update
.Close
End With
Else
MsgBox "ok"
End If
Thanks