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 / Word / Mailmerge and Fax / September 2006

Tip: Looking for answers? Try searching our database.

Visual Basic text box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Marty - 06 Sep 2006 19:29 GMT
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
Cindy M. - 07 Sep 2006 09:57 GMT
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
[quoted text clipped - 4 lines]
> 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 :-)
 
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.