It does not like this code:

MsgBox("Computer Name: " & Environment.MachineName)

The "Envronment.machineName causes the problem.

What I want to do it write a program, on the scanner, that determines which scanner, of a possible 9, I am dealing with.

I plan to name them "Scanner1", "Scanner2", etc

It will create a diifferent output file for each scanner. Later, they will be downloaded to a PC and merged into the database.

I am stuck on determining the name of the mobile device. I have been searching to no avail.