View Single Post
  #1  
Old February 4th 06, 08:48 PM posted to microsoft.public.outlook.program_forms
Michael Anderson
external usenet poster
 
Posts: 19
Default Get text from keyword Listbox

Hi,

i am working on a customised contact form. I have a keyword type ListBox
"ListBox3" with a field called "mxzNCRL2". It has 3 possible values:
Bunnings;Forklift;First Aid. I am trying to get the selected value or values
onto a text variable.

Dim txtmxzNCRL2
Dim objInspector

Set fso = CreateObject("Scripting.FileSystemObject")
Set MyFile= fso.CreateTextFile("c:\testfile.txt", True)

Set objInspector = Item.GetInspector

txtmxzNCRL2 = Item.UserProperties("mxzNCRL2").Value

MyFile.WriteLine(txtmxzNCRL2)

MyFile.Close

Set fso = Nothing
Set objInspector = Nothing

I am told that I have a type mismatch and it doesn't read in the selected
value or values.

Any suggestions?
--
Thank You in Advance,

Michael Anderson
Ads