Help Can Access Control a Relay?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to develop a data control application that will have to switch on
and off some relays in the real wold! i anticipat this to be with the com
port or printer port!
dos any one know how to make MS Access conect to these ports and control
them! so i can switch these relays on and off!
or any other sugestions that will work?

Steve
 
Steve said:
I am trying to develop a data control application that will have to switch on
and off some relays in the real wold! i anticipat this to be with the com
port or printer port!
dos any one know how to make MS Access conect to these ports and control
them! so i can switch these relays on and off!
or any other sugestions that will work?

Steve


Pretty easy would be an Access Macro that includes a "RunApp" action
(you have to feed it a command line) or a "RunCode" action (you feed it
the name of a VBA function).

For example, if you create a file "x1.bat" containing this line:

echo Hi, there!>COM3:

and a Macro [M_Sendit] containing this action:

RunApp c:\x1.bat

then running [M_Sendit] will send stuff to port COM3: .

-- Vincent Johns <[email protected]>
Please feel free to quote anything I say here.
 
Back
Top