Assigning a field as the control source through VBS

C

Carol Geddes

I would like to assign a field as the control source to a txtbox using vbs.
I can't figure out what the property is called that binds it. ie
txtbox.what?? = fieldname
Thanks
Carol
 
H

Hollis D. Paul

I would like to assign a field as the control source to a txtbox using vbs.
I can't figure out what the property is called that binds it. ie
txtbox.what?? = fieldname
Actually, the name is set by default when you create the control. You can
rename it by right-clicking it in design mode, and choosing properties.

You bind it by using the Bindery feature of the New control GUI. I don't
know how binding is done programmatically.

Hollis D. Paul [MVP - Outlook]
(e-mail address removed)
Using Virtual Access 4.52 build 277 (32-bit), Windows 2000 build 2195
http://search.support.microsoft.com/kb/c.asp?FR=0&SD=TECH&LN=EN-US

Mukilteo, WA USA
 
C

Carol Geddes

Thanks for your reply.
I guess I wasn't clear enough in my post.
I know how to name a control and bind it using the Gui. I didn't want to
assign a new name to the control.
Is there no property of a control that is used to bind it to a field?
In Access it is called control.controlsource.
There must be some way that Outlook binds it.
Thanks
Carol

Hollis D. Paul said:
I would like to assign a field as the control source to a txtbox using vbs.
I can't figure out what the property is called that binds it. ie
txtbox.what?? = fieldname
Actually, the name is set by default when you create the control. You can
rename it by right-clicking it in design mode, and choosing properties.

You bind it by using the Bindery feature of the New control GUI. I don't
know how binding is done programmatically.

Hollis D. Paul [MVP - Outlook]
(e-mail address removed)
Using Virtual Access 4.52 build 277 (32-bit), Windows 2000 build 2195
http://search.support.microsoft.com/kb/c.asp?FR=0&SD=TECH&LN=EN-US

Mukilteo, WA USA
 
S

Sue Mosher [MVP-Outlook]

It's control.ItemProperty, and if you use it, you'll one-off the form.

Also, Outlook 2003 introduces a new Inspector.SetControlItemProperty method.
I presume it also one-offs.
 
C

Carol Geddes

Thanks so much.
I'm very new to Outlook so I imagine I'll be looking for more help.
It's much appreciated.
Carol
 
C

Carol Geddes

Sue,
I forgot to say that I am using Outlook 2000 still.
I couldn't find control.ItemProperty using the Object Brower.
Is it there?
Thanks
Carol
 
S

Sue Mosher [MVP-Outlook]

Yes. Did you try it?
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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