where to place code that i want to run all the time, without an event such as a click

the-m0th

Registered User.
Local time
Today, 12:46
Joined
Apr 14, 2015
Messages
51
hi,

i'm currently trying to make the call answering screens a bit better in the call centre that i work in. i'm trying to make a caller i.d. for incoming calls. i have a reference library from the telephone software people in vba that lets me dial and hangup the phone, now i'm trying to place a text box on the form that will update to show the number of an incoming call which will enable me to search a table of contacts and display the details of the caller if they are available. i'm guessing that i need to create a loop that will run until there is an incoming call but i don't know where to place the code without it needing a mouse click or mouse over to trigger it. i just want it to run constantly. any help would be appreciated.

Thanks
Wayne
 
...that lets me dial and hangup the phone,
So you're the one who has been calling my number trying to sell me stuff I don't want and hanging up at will? :mad: :D

You can use the form's Timer event. Have a look into that. It can be set to run every second or so.
 
thanks for the help! turns out there is an event that fires whenever the telephone is answered and all i had to do was write a little sub routine (i think it's a sub routine, i'm really, REALLY new to all of this) that updates a text box with the value of a string (i think it's a string :) ) called Answered_Outside_Number. now if you 1471 me after one of my dodgy calls, you won't be able to shout at me because i'll know to ignore it :p
 
there is an event that fires whenever the telephone is answered
you won't be able to shout at me because i'll know to ignore it
tongue.gif
but you've wasted your time answering the phone:D
 

Users who are viewing this thread

Back
Top Bottom