cgreen said:
GEESH!! If you wanted clarification you could've just asked! ;-)
For those of you who didn't understand me the first time, the device we use
is
a bar-code scanner -- much like what you see in super markets.
For our purpose, it's used for scanning serial numbers.
Once the scanning process has completed the data/serial numbers must be
uploaded
(utilizing serial cables) to the PC to a .txt file (NotePad...). and then
the .txt file
is saved under a naming convention.
From there, these serial numbers are manually entered into our Access
database. The problem
is that the data entry people have been known to make mistakes. So, by
automating everything,
I believe, we should encounter fewer mistakes.
...can anybody help?
OK. If you have the data in a standard format in a file that the program
can find then you have a fighting chance of being able to upload the
data automatically.
There are two things that are important. One is the name of the file and
the other is the format of the data in it.
If the format of the data is suitable and it always has the same name
then you could use it as external data in a linked table.
If the name changes but the format is tabular then you could use the VBA
DoCmd.TransferText command to upload the data into an Access table then
process it.
If the format is not tabular then you could either use an external
program (such as awk) to reformat the data. Alternatively you can write
VBA code to read characters from the file and process them.
Lastly, as someone else suggested, you could choose a scanner that
emulates a keyboard. That way your users could input the data directly
into an Access form.
If you have any doubts then post a copy of the data file to
comp.databases.ms-access and I'll take a look at it. But I strongly
suggest that you trim the crossposting. There are people who might be
able to help you but won't even see your message because they
automatically kill multiply crossposted messages.