473,396 Members | 1,884 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

vb6+Outlook Phone Numbers

I have a small VB application that will import contacts from an access database into Outlook, and this has worked fine until Windows Vista.

When installed on Vista (no matter what office version it seems) the import will cut out the plus sign (+) from the start of phonenumbers.

Having looked at the running code, I have found that the character is lost here:

Contact.MobileTelephoneNumber = myTable("phone1")

resulting in +47xxxxxxxx getting saved as 47xxxxxxxx.

I have tried various tings, and see that the character is only stripped when it is in the start of the phone number, ex: adding

Contact.MobileTelephoneNumber = "+" & myTable("phone1")

will produce ++47xxxxxxxx

Can anyone explain this/suggest a solution?
Aug 11 '07 #1
2 1458
Maybe it works if you put "+" between brackets : ("+")
Aug 12 '07 #2
No, it still produces ++47....and I have tried anything I can think of, and all search terms I can think of in google. :s

The whole code is something like..

Dim objAllContacts As Outlook.Items
Dim Contact As Outlook.ContactItem
Set objAllContacts = objFolder.Items
For Each Contact In objAllContacts
strSQL = "SELECT * FROM contacts WHERE username = '" & Contact.CustomerID & "';"
Set myTable = myDB.OpenRecordset(strSQL)
If Not myTable.EOF Then
Contact.MobileTelephoneNumber = (" ") & myTable("phone1")
Contact.Save
end if
myTable.Close
myDB.Close
next
Aug 13 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: TP | last post by:
Hi, In SQL Server 2000, if I have to create a table to store a very large number of 10 digit telephone numbers, would I be better off to have a bigint field or just use a varchar field? If I do...
0
by: bobdydd | last post by:
Hi Everybody Can anyone help with this mindbender We are writing an application that uses a VB built DLL to send emails using CDO 1.21. Whether we use the VB DLL or code the CDO stuff...
3
by: pnp | last post by:
Is there a way to access through a C#.NET app my Microsoft Outlook contacts database? Mostly for queyring information about phone numbers... Thanks in advance, Peter.
23
by: Graham F French | last post by:
Hello, I can read text files into my application, but I cannot read in msg files as they seem to be in a proprietry format. Is there anyway of converting it on the fly or is there an...
6
by: Ernie | last post by:
We have an Outlook 2000 VBA application - 8 user forms, and about a thousand lines of code - that we wish to distribute. We know that we can password-protect the code, but that does not give us the...
1
by: shachar | last post by:
hi all. in my vb.net application i want to detect when a new Email arrived. * i have OutLook installed. can i do it like in vb6 (outlook object model)? how?
9
by: Terry | last post by:
I am converting (attempting) some vb6 code that makes vast use of interfaces. One of the major uses is to be able to split out Read-only access to an obect. Let me give you a simple (contrived)...
13
by: John Kotuby | last post by:
I am expecting the answer to be, "of course not" or " are you kidding?", but maybe (hopefully) I am wrong and somebody can point me to an ingenious example of how the impossible just takes a little...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.