[Webinar] Learn how to a build a cloud-first strategyRegister Now


Writing to a text box

Posted on 2004-11-09
Medium Priority
Last Modified: 2010-05-02
On an order form I have 2 combo boxes, one with product, and the other with desription. The description combo box requerys after the product combo update. I have a text box that I want the value from the product and description box to go to. I want them side by side eg. literature-leaflets, and there are only five lines in the text box.
Question by:sarah_cosgrove

Assisted Solution

RogueSolutions earned 195 total points
ID: 12534092

To get the TextBox to contain the contents of the two combos you would do ...

txtProductDescription.Text = cboProduct.Text & " - " & cboDescription.Text

This code should be in the click event of both combos.  Am guessing your combos are set to be dropdown lists rather than actual combos?

Not sure what relevance the 'only has 5 lines' is though?

Accepted Solution

rajaloysious earned 180 total points
ID: 12534269
Hope the following helps...
Make the text box property Multiline = true and you can add multiple entries into the text box.


Expert Comment

ID: 12540667

   since the description changes when u click the product u can try this

private sub cbDescription_change()

txtProductDescription.Text = cbProduct.Text & " - " & cbDescription.Text

end sub

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month20 days, 13 hours left to enroll

865 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question