listbox

G

Guy Trudeau

I have two list boxes (checkbox style) on a form I am designing and these
list boxes have been populated from fields. Let's say I select an item from
one list box. If I subsequently click on any other control (the other list
box, the To button, whatever) whatever I selected in the list box gets
deselected. Why is this and how do I correct this behavior?

FYI that while I familiar with VB 6, I have never before created a form in
Outlook.

Guy
 
H

Hollis D. Paul

Why is this and how do I correct this behavior?

FYI that while I familiar with VB 6, I have never before created a form in
Outlook.
Well, VBScript is deceptively like VB, but one big difference is that
VBScript does not automatically allocate memory to hold the value of the
control. So, if you have not bound the control to a field in Outlook, either
a User Defined Field in the Form, or a User Defined field in the Folder, then
the value of the control disappears when it is out of view. (I would have
thought that if you go to another control on the same page, the control value
would be retained in the screen object. But if the control is moved off
screen, then it should be gone.) You bind the control to a field in Design
Mode by right-clicking the control, choosing Properties, and then selecting
the field to bind the control to. In the first step of selecting a field,
you choose a category to choose from, choose between UDFsintheForm or
UDFsintheFolder, depending upon whether on not you want the field to appear
in the Folder design as well. Some search processes can only be performed if
the field is part of the folder design. But not to worry, if you choose an
"in the form" field, and later want it in the folder design, it is easy to
put it there.

Hollis D. Paul [MVP - Outlook]
(e-mail address removed)
Mukilteo, WA USA
 
S

Sue Mosher [MVP-Outlook]

Multi-select listboxes (which I presume is what you have) have a lot of quirks. Are these bound or unbound? If bound, is the bound property a keywords or text property?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top