Combo Box values

Petros

Registered User.
Local time
Today, 23:58
Joined
Jun 30, 2010
Messages
145
Hi all, i want to populate control A with the values from Column 1 and 2 from a Combobox..is this possible. Control A is the Combobox.

Thanks!
 
Welcome to AWF Petros

Is Control A bound or unbound?
 
Ok. You shouldn't save the value of existing data into another field. There's something called concatenating two fields which can be done in a query and you can use the concatenated field to display the result.

So for everytime you run the query it will display as Column 1 and Column 2 but without saving it. Get rid of the bound field in the table and use what the result of the concatenated value from the query as your control's control source.

Here's how you do it:

http://www.techonthenet.com/access/queries/concatenate.php
 
Ok. You shouldn't save the value of existing data into another field. There's something called concatenating two fields which can be done in a query and you can use the concatenated field to display the result.

So for everytime you run the query it will display as Column 1 and Column 2 but without saving it. Get rid of the bound field in the table and use what the result of the concatenated value from the query as your control's control source.

Here's how you do it:

http://www.techonthenet.com/access/queries/concatenate.php

Ok..I will change controll A to unbound...and on the "after update event" i will run the query...
 
You can change it in the query of the form. Create an aliased field (like in the example) and just use that field as the Control Source of Control A.

The field in the query would look like this:

ConcatValue: [Column1] & " " & [Column2]

Base your form on that query (which will include all the other fields, and use ConcatValue as the Control Source for Control A.
 
You can change it in the query of the form. Create an aliased field (like in the example) and just use that field as the Control Source of Control A.

The field in the query would look like this:

ConcatValue: [Column1] & " " & [Column2]

Base your form on that query (which will include all the other fields, and use ConcatValue as the Control Source for Control A.

Thanks a lot! i will proceed as suggested...:)
 
Glad you got that sorted

Remember: If you are calculating it, don't save it.

:)
 

Users who are viewing this thread

Back
Top Bottom