Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Variable not defined

Status
Not open for further replies.

VicEllins

Technical User
Jan 28, 2005
4
US
Attempting to dial the modem with:

MSComm1.CommPort = 3
MSComm1.Settings = "9600,N,8,1"
MSComm1.PortOpen = True
MSComm1.Output = "ATDT" & A$ & vbCr

I got a "compile error, Variable not defined" for the MSComm1.

How do I define it?
 
Um, if you are talking about the normal comm control then you just drop it onto your form and make sure its name is MSComm1.

 
I did that and it still says "Device not open". The nwe control is MSComm1_OnMSComm1 which I assume responds to incoming data.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top