View Single Post
  #1  
Old March 31st 06, 06:02 AM posted to microsoft.public.outlook.program_forms
Sydney
external usenet poster
 
Posts: 24
Default cant overtype on custom form textbox

Hi

I have an outlook form with a Contacts button to bring in the phone number
(BusinessTelephoneNumber ) from the selected contact into the txtPhoneNumber
Text Box.

This works ok but it doesnt allow me to have the choice of changing the
phone number brought into txtPHoneNumber. It keeps reverting to the
BusinessTelephoneNumber .

Now i sadly have no coding skills and grabbed the information i have from
the net and altered it my way:

Sub Item_PropertyChange(ByVal strName)

' Remember business phone number
Item.BillingInformation = objContactItem.BusinessTelephoneNumber 'puts
the No. in the txtPhoneNumber

' Set phone number
strPhoneNumber = objContactItem.BusinessTelephoneNumber 'holds it in string


' Remove phone number
'Item.BillingInformation = ""

'Item.GetInspector.ModifiedFormPages("Message").Co ntrols("txtPhoneNumber").V
alue = ""

'test
msgbox strPhoneNumber

Any ideas?


Ads