Controling Cash Register With VBA Code
Hi There
I Have Finished A Point Of Sale Program On Access, I Still Need To ControlThe Cash Register Drawer By Code.
In The Manual It Is Mentionned
To Open The Drawer through com1 under qbasic
OPEN "COM1:300,N8,1"
FOR RANDOM AS #1
PRINT #1,"0000000000"
Anuy Help On This Subject ?
Thanks In Advance
[347 byte] By [
wkalo] at [2007-11-11 8:16:49]

# 1 Re: Controling Cash Register With VBA Code
That code should work, except there needs to be a comma between N and 8, and Open...For Random should be a single line. Try this:
Open "COM1:300,N,8,1" For Random As #1
Print #1, "0000000000"
Close #1
That code assumes that your register is connected to COM1. What happens when you run it?
# 2 Re: Controling Cash Register With VBA Code
Phil Weber
Thank You For Reply
I Solved my Problem By Trigering An Excutable File That Came With Drawer Using The Shell Command
;)
wkalo at 2007-11-11 17:26:48 >
