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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text box with two fields concatenated together 1

Status
Not open for further replies.

bernie10

Technical User
Sep 13, 2004
219
US
Hello all,
Suppose I have a form that is tied to a query called "products". I would like to tie two fields from the query together in a single text box seperated by a ";".

So if my query entrees are as follows:

Product Color Size
1 Blue Large
2 Red Small

The text box would show:
Blue; Large
Red; Small

as I scroll to the particular records. What do I put in the control source field of the text box to get the text box to display this data?

Thanks,
Collen
 
This isn't quite as simple as putting something in the control. You would need to code the way it works. Create an unbound text box. In the Curren event of your form, put the code:

Me.unboundcontrol.value= color & size

This is a very rough idea how to do this, but it should get you what you need.

HTH,
Mink
 
Thanks for both of your replies.

Traingaimer's solution easily did the trick.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top