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
> 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]
Hollis@outhousebythesound.com
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
Carol Geddes - 23 Feb 2004 17:11 GMT
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
> > 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
[quoted text clipped - 12 lines]
>
> Mukilteo, WA USA
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.

Signature
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
> 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
Carol Geddes - 24 Feb 2004 18:25 GMT
Thanks so much.
I'm very new to Outlook so I imagine I'll be looking for more help.
It's much appreciated.
Carol
> It's control.ItemProperty, and if you use it, you'll one-off the form.
>
[quoted text clipped - 6 lines]
> > Thanks
> > Carol
Carol Geddes - 26 Feb 2004 16:52 GMT
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
> Thanks so much.
> I'm very new to Outlook so I imagine I'll be looking for more help.
[quoted text clipped - 11 lines]
> > > Thanks
> > > Carol
Sue Mosher [MVP-Outlook] - 26 Feb 2004 21:35 GMT
Yes. Did you try it?

Signature
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
> Sue,
> I forgot to say that I am using Outlook 2000 still.
[quoted text clipped - 11 lines]
> > method.
> > > I presume it also one-offs.
> > > > 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