"does not work" doesn't give much to go on...
What happens when the code attempts to run? Do you get an error? If so,
what's the error?

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
> Res.All,
> I am using the mscomm activex control to dial automatically from my
[quoted text clipped - 7 lines]
> Yours
> Prashant
Prashant Shah - 25 Nov 2006 01:51 GMT
Res.Mr.Douglas,
Thanks for the reply. I am sorry. I should have given you full
description.
The error is :- Device not open.
It occurs when the code is mscomm1.portopen = true
Yours
Prashant
Douglas J. Steele - 25 Nov 2006 11:55 GMT
I'm not aware of any problems specific to using run-time with the MsComm
control.
Tony Toews has a bit about using serial communication with Access at
http://www.granite.ab.ca/access/serialport.htm. See whether there's anything
there.

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
> Res.Mr.Douglas,
> Thanks for the reply. I am sorry. I should have given you full
[quoted text clipped - 4 lines]
> Yours
> Prashant