WITH This .pcLastReading = .pcLastReading + .Input IF AT(CHR(13), .pcLastReading) > 0 lcSqlStr = STRTRAN(.pcLastReading, "'", "''") TEXT TO lcSql TEXTMERGE NOSHOW usp_UpdateReading '<<lcSqlStr>>',<<.Parent.pnCommPort>>,<<ThisForm.pn LineId>> ENDTEXT ThisForm.mExecuteSqlCommand(lcSql, '', '')You see what happened: A scan of the barcode "L1jaH" had also a read from the prev. scan. How that can be?