Fix Barcode Scanner Input in Microsoft Access Text Boxes
Question details
Fix barcode scans that add an extra line to Access text boxes and make the scanned value appear hidden.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- A keyboard-wedge scanner should enter five barcodes in consecutive form fields, then save and refresh the form for a new record without operator input.
- Observed behavior
- Scans in text fields add an extra line, and the value appears hidden until the field is clicked or edited. Numeric fields do not show the same behavior.
Locate the scanner's configuration guide or setup barcodes and open the affected Access form in Design View. Identify the five barcode controls and any existing form automation that advances fields or saves records.
Align the Scanner Suffix with Access Enter Key Behavior
Use this approach when scans add a line break or the value does not display as expected in a text box.
Use the scanner's configuration utility or setup barcodes to check which suffix it sends after each scan, such as Enter, Tab, or a carriage return and line feed. Confirm whether the scanner already sends more than one delimiter.
Open the form in Design View, select an affected text box, and open Property Sheet. On the Other tab, check Enter Key Behavior; if it is set to New Line in Field, change it to Default unless a multiline value is required.
Configure the scanner to send the delimiter required by the form, such as Tab for the next control, using the scanner's documented setup procedure. Avoid sending an extra Enter or line feed if it creates a new line or duplicates existing form automation.
Switch to Form View, click the first barcode text box, and scan five test barcodes. Check that each value is visible, focus advances once per scan, and the form saves and opens a new record after the fifth scan.

Check Form Tab Order and Save Automation
Use this check if scans display correctly but do not advance through all five fields or start a new record.
Use WPS Office for Compatible Documents and Spreadsheets
WPS Office is a free, lightweight alternative with a familiar interface for working with documents, spreadsheets, and presentations. Its Microsoft Office format support makes moving everyday files straightforward. It does not fix Access forms or replace an Access database.

Frequently Asked Questions
Why does a barcode scan add a line in an Access text box?
The scanner may send Enter or a line-feed character after the barcode. In the form's Design View, select the text box and check Property Sheet > Other > Enter Key Behavior, then compare it with the scanner's suffix configuration.
How can I make the scanner move to the next field?
Configure the scanner to send a suitable suffix, such as Tab, using its setup utility or configuration barcodes. In Access Design View, check Design > Tab Order so the controls follow the intended scan sequence.
Why might the cursor skip a barcode field?
Both the scanner suffix and a form event may be moving focus. Check the scanner configuration and the affected control's Event tab in Property Sheet for duplicate advance actions.
Does changing the Enter Key Behavior property save the record after five scans?
No. That property controls how Enter behaves in the text box. Check the form's event macros or VBA procedures to see how the fifth scan triggers saving and opens a new record.




