A2K /comm device

  • Thread starter Thread starter Terry
  • Start date Start date
T

Terry

Hello,
I would like to create a data entry form in A2K, and have
one of the text boxes populated with the results from an
electronic scale that is on "Com Port 1".

Is it possible to retrieve data from a com port device?

Thanks.

Terry
 
You can try opening the com port directly, but if data comes in the port, it
is often not buffered.

Check out the "open" command in the help.

Another good solution (one that I would probably use) it the mscomm control.
This control is for VB forms, but it does work with ms-access. If you don't
have a VB development system installed on your computer, then you likely
don't have the mscom control available. The advantage of using this control
is the port is buffered, and events trigger when data comes in.

It has been a long time since I used the open command on a com port, so I
can't really say how reliable it will be (hence my suggestion to try the
ms-comm control).

Last words:
If you *can* get a reliable setup using just the "open" command, then that
is a advantage since you then avoid using a ActiveX control.
 
Albert,
Thank you for your reply.
I do have VB6, so I think I will consider this project
needing a VB front-end and not Access. I have much less
experience with VB and find it 'clunky' to work with as
opposed to Access. Maybe I will be suprised...

Regards,
Terry
 
I am not suggesting to use VB6, but I am suggestion to use what most
developers use when communicating to a com port: the activeX ms-comm
control.

This control will work with both VB and ms-access. However, it is NOT
installed with ms-access by default, and thus you need some means to get
that control.
 
Back
Top