Hi friends. I would like to copy certain records from a Form to another Form on 'Click'. The code works already but I don't know how to copy also other field. For the moment it copies only the first field
Code:
Private Sub cmdOrdered_Click() DoCmd.RunSQL "UPDATE Sales SET Sales.Action = 'Ordered'" & _ "WHERE (Sales.Action)= 'On-Order' AND (Sales.[Transaction Type])= 'Sold Re-Order' and (Sales.Barcode_Of_Goods)='" & Me.Barcode_Goods & "'" Me.Barcode_Goods.SetFocus Me.Barcode_Goods.SelStart = 0 Me.Barcode_Goods.SelLength = Len(Me.Barcode_Goods.Text) RunCommand acCmdCopy DoCmd.OpenForm "New Stock" RunCommand acCmdPaste Me.Requery End Sub
Comment