Instead of the users lookup for the correct product code/barcode from the subform I want the users to simply scan the barcode from the parent form from the control called productcode and once that is done then the after update event fires and update the subform.
For example the productcode or barcode = 4100525 once scanned from the parent form it should create a new line in the child form
Code:
Option Compare Database
Option Explicit
Private Sub Text9_AfterUpdate()
Forms!frmCustomerInvoice![sfrmLineDetails Subform]!ProductCode.Form.Requery
DoCmd.GoToRecord , , acNewRec
End Sub
For example the productcode or barcode = 4100525 once scanned from the parent form it should create a new line in the child form
Attachments
Last edited: