Visual Basic text box

M

Marty

Hi-

I have an app which uses MS Visual Basic forms to allow users to input info.
This is then mailmerged into a document.

Is it possible (if so, how) to have a default value display in a text box?
The hard part: the value will vary, and will be the value of a field in a
file which the mailmerge uses.

The VB app already read the file, and knows the value, but how do I get it
into the text box as a default value? Somehow I need TextBox.Value to equal
my variable (pm_patent_no) which I previously read. Then the TextBox.Value
should display and the user can accept it or overtype something.

Thanks for you help in advance.

Marty
 
C

Cindy M.

Hi Marty,
I have an app which uses MS Visual Basic forms to allow users to input info.
This is then mailmerged into a document.
If you're programming this in Visual Basic, then you need to address your
question to a Visual Basic group. Without knowing the internals of your
project, all one can really say is that you make these assignments after you've
read the values into the variables. (I can hardly believe you've programmed
what you say you have without knowing how to assign a value to a form control
at run-time...)
Is it possible (if so, how) to have a default value display in a text box?
The hard part: the value will vary, and will be the value of a field in a
file which the mailmerge uses.

The VB app already read the file, and knows the value, but how do I get it
into the text box as a default value? Somehow I need TextBox.Value to equal
my variable (pm_patent_no) which I previously read. Then the TextBox.Value
should display and the user can accept it or overtype something.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

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