raziel3
Registered User.
- Local time
- Today, 02:35
- Joined
- Oct 5, 2017
- Messages
- 316
First, let me state I'm working with a barcode scanner.
On my form (SALES) I have a Combobox (cboSalesUPC). As soon as the barcode is scanned, cboSalesUPC validates it and then it is sent to the field sfSalesUPC in the subfrom (subfrmSales).
If the barcode is not found, it triggers an event to open up a form (ITEMPOP) in popup mode. The user finds the Item by name and then clicks a button to run this sub
The barcode scanner after scanning, simulates the {Enter} key being pressed.
How do I simulate this action in VBA because after the value is passed from ITEMPOP to cboSalesUPC, it just remains in cboSalesUPC and is not being passed on to sfSalesUPC .
Other info:
The barcode exists in the source table but cannot be picked up by the scanner for example:
798713110016 <-- the scanner will read this (BEER)
798713110016-CASE <---- the scanner cannot read that is why the ITEMPOP form is needed to search by name (BEER CASE)
On my form (SALES) I have a Combobox (cboSalesUPC). As soon as the barcode is scanned, cboSalesUPC validates it and then it is sent to the field sfSalesUPC in the subfrom (subfrmSales).
If the barcode is not found, it triggers an event to open up a form (ITEMPOP) in popup mode. The user finds the Item by name and then clicks a button to run this sub
Code:
Forms!Sales.Form.cboSalesUPC = Me.wsPNAME.Column(0)
DoCmd.Close acForm, "ITEMPOP"
Forms!Sales.Form.cboSalesUPC.SetFocus
The barcode scanner after scanning, simulates the {Enter} key being pressed.
How do I simulate this action in VBA because after the value is passed from ITEMPOP to cboSalesUPC, it just remains in cboSalesUPC and is not being passed on to sfSalesUPC .
Other info:
The barcode exists in the source table but cannot be picked up by the scanner for example:
798713110016 <-- the scanner will read this (BEER)
798713110016-CASE <---- the scanner cannot read that is why the ITEMPOP form is needed to search by name (BEER CASE)
Last edited: