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 / General MS InfoPath Questions / January 2006

Tip: Looking for answers? Try searching our database.

Referencing Controls

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
NikV - 06 Jan 2006 18:31 GMT
This is a very newbie question.  I have a text box and a command button in my
form.  I want to write VB code behind the command button that populates a
string to the text box after the user presses the command button.  How can I
do this?  Please help. Thanks!
Greg S - 06 Jan 2006 19:37 GMT
Nik,

You have the break the control mind-set of VB.  In InfoPath you alter the
XML data and the control, which is bound to the data, reacts accordingly.

So you can edit code on a button which changes a data value in XML DOM.  Any
control (e.g. your text box) that is bound to that value is then updated.

It's a bit of a mental shift, but a critical one to make.

Good luck!

> This is a very newbie question.  I have a text box and a command button in
> my
> form.  I want to write VB code behind the command button that populates a
> string to the text box after the user presses the command button.  How can
> I
> do this?  Please help. Thanks!
NikV - 09 Jan 2006 14:58 GMT
Greg,
Thanks for your response.  Can you please walk me through what you just said
below?  Please show me how to change the data value in the XML DOM and
populate a textbox after a button is clicked.  Thanks!

> Nik,
>
[quoted text clipped - 14 lines]
> > I
> > do this?  Please help. Thanks!
 
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



©2008 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.