Discussion Locked

How to send to com2 in Access 2000

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have an Access 2000 database that is doing some billing functions. We want to add a cash drawer to the PC via a serial port and have a button that opens the cash drawer on a form in Access.
How do I configure Access 2000 to send a specific stringcommand to com2?

5 replies

by grebenyukov

Try to write in file 'com2' just like in ordinary file on disk as it specified in Access documentation:

Open "COM2" For Output As #1 ' Open file for output.
Write #1, "Your command" ' Write your data.
Write #1, ' Write blank line.

This discussion is closed to new replies.