Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Forms / February 2004

Tip: Looking for answers? Try searching our database.

Assigning a field as the control source through VBS

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Carol Geddes - 21 Feb 2004 02:07 GMT
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
Hollis D. Paul - 22 Feb 2004 04:26 GMT
> 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
Sue Mosher [MVP-Outlook] - 24 Feb 2004 16:16 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.