Open USB Cash drawer

asteadman

Registered User.
Local time
Today, 09:56
Joined
Jun 13, 2013
Messages
27
Hi all,

I have a USB cash drawer attached to a simple EPOS DB I created, it has a built in Serial converter and is installed on COM5.

Does anyone know how to fire/open this in Access? I have researched and researched but cannot find a solution. I believe it needs an escape command sending to it or something sending but I cannot figure it out. Some people say the following code works, but not for me:

Open "COM5" For Output As #1
Print #1, Chr(27) & Chr(112) & Chr(32) & Chr(25);
Close #1

Any help would be appreciated.

Cheers.

Andy
 
Try removing the semi-colon at the end of the Print statement.

It might be waiting for a carriage-return to read the sequence.

Just a thought,
Wayne
 

Users who are viewing this thread

Back
Top Bottom