Telephone number dail via DAIL Button

M

Marcel

Hello,

I would like to use the value of the field nummer witch is containing an
telephone number so that when i'm pressing the button dail number the modem
is dailing the number of the system with the number provided in the field
nummer.

Below the code :

Private Sub Secure_CRT_Click()
On Error GoTo Err_Secure_CRT_Click

Dim stAppName As String
Dim stDialStr As String
Dim stString As String


stAppName = "C:\Program Files\SecureCRT\SecureCRT.EXE /tapi <telephone
number>"

Call Shell(stAppName, 1)

Exit_Secure_CRT_Click:
Exit Sub

Err_Secure_CRT_Click:
MsgBox Err.Description
Resume Exit_Secure_CRT_Click

End Sub

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/com...2779&dg=microsoft.public.access.modulesdaovba
 
T

Tom van Stiphout

On Tue, 8 Jan 2008 05:40:00 -0800, Marcel

Not sure what your question is. Perhaps you want to know how to get
the data from your control into this function? If so, change one line
to:
stAppName = "C:\Program Files\SecureCRT\SecureCRT.EXE /tapi " &
Me.SomeTextField

(where SomeTextField is the name of your textbox)

-Tom.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top