Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

insert string into text box 1

Status
Not open for further replies.

ghayman73

Technical User
Jul 3, 2002
55
FR
i am trying to insert string into a text box i think??

i would like a text box to say something like this

Hello "keyword" welcome to this form.

where the keyword is say someones name which is in another field. Is this possible.

thanks for your time

grant

p.s. it doesnt have to be a text box but i would like it to display on a form somehow.
 
Create a label and then, via the OnOpen event of the form (or whatever) set the Caption property of the label to something like this:

YourLabel.Caption = "Hello" & CurrentUser & "welcome to this form."
 
If the control (field) with "Keyword" in it is called txtKeyword, then the source of the text box you are trying to fill should be something like:
Code:
="Hello " & txtKeyword & ", welcome to this form."
 
mp9 that works great thanks

thanks also fancyprairie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top