Solved

How to get the Caller ID by VBA?

Posted on 2008-10-14
10
1,005 Views
Last Modified: 2013-11-28
How to use the PC connect telephone, when peple call then show the Caller ID on the PC (Access Form)?
0
Comment
Question by:Uncochen
  • 5
  • 4
10 Comments
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 22719651
Can you explain what this is:
  "PC connect telephone"

...or rephrase your question.

Thanks

JeffCoachman
0
 
LVL 4

Accepted Solution

by:
Rodger earned 500 total points
ID: 22721337
I think what you want is to have Caller ID in your access database?  I actually did this.  I have not used it in years.  Make sure your modem has Caller ID.

I borrowed most of the code and then modified it for what I was tring to do.  This of course was before I had dialup.  LOL.  I had it setup to page me when someone called the house.  (No clue why I did this, I think I just wanted something to do)  At the time I had distinctive ring on my phone so I would make sure it was the correct number ad then send out a page.  I marked the code where you need to change it for your phone number.  

Let me know how it goes.  Maybe I'll set it back up.
CallerID-2000.mdb
0
 

Author Comment

by:Uncochen
ID: 22726668
Hi RodgerDjr, This file you send to me, had miss some kind of .ocx files. it is not working.

My idea is when the customer call my phone, then the system will search the database, if the database have this Caller ID then display the details, like "Name", "Address".........if no this Caller ID record then the system allow to add in to the database.

The hard thing for me is how the get the Caller ID(Telepone number) from the phone, and I not sure how to connect the telepone to Computer, is it connect to the modem ?
0
 
LVL 4

Expert Comment

by:Rodger
ID: 22727189
Oh that is right you need that OCX file.  IS it giving an error that you do not have the comm32.ocx installed?  Also does the PC have a modem if not you will need one and you will want to make sure that it has caller ID, I am pretty sure most of the new ones do.  

The concept you want to do will work and it is a great idea this way when the customer calls it will pull up their record.  

What kinda of modem do you have?
0
 

Author Comment

by:Uncochen
ID: 22738944
Just a normal modem, PCI socket, so is it connect the phone line to the modem right? and try to read  caller ID from the modem by some kind of port right? do you have any reference about this? thank you!
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 4

Expert Comment

by:Rodger
ID: 22739202
The main form will display the data when the phone rings and you will see the info there.  But you have to make sure that the modem will read the caller ID info sent from the phone comapny.  Go into the setting for your modem and query the modem see if it list anything about caller ID.
0
 
LVL 4

Expert Comment

by:Rodger
ID: 23064448
Uncochen,
Sorry just getting back  to this.  I was on vacation for a while and now I am back.  I'll try and work on getting mine working again.  I have moved since I had it working plus it is a newer PC.
Rodger
0
 

Author Comment

by:Uncochen
ID: 23214060
Hi RodgerDjr, Sorry, I can get the "CALLERID.CallerIDCtrl.1" ActiveX Controls in the frm_CallerID Form, is it possible you sent me one to my email please! my email is: uncochen@gmail.com
I did checking my modem by the Hyper Terminal, it works ok, can display the callerid! it means my modem support the callerID. but i try your program just can display Ring. ..Ring... Ring...... not display the CallerID details. do you know what happen? and when i click the "Open Port" button, it will display :

ATZ&ATS41=1&AT#CID=1

ERROR

??

is it the country problem? I am in UK
Thank you very much!
0
 
LVL 4

Expert Comment

by:Rodger
ID: 23214434
Yes that is the problem.  No I do not think that is the issue.  One thing that I remembered is the initialzation string needs to be correct.  If you are seeing 'ring' . . . 'ring', then we are on the right path.  if you type in AT#CID=1 does it return OK?  If you get an error then we need to find another AT command that will turn on CID.
0
 

Author Comment

by:Uncochen
ID: 23217835
that's right! I delete the "ATZ&ATS41=1&" then it works well. can turn CID and return to OK. Thank you very much for your time.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now