Referencing Controls

N

NikV

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!
 
G

Greg S

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!
 
N

NikV

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!
 

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