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

Add multiple fields to a table from 1 Combo Box ?

Status
Not open for further replies.

ghnat

MIS
Apr 8, 2003
28
0
0
CA
Is it possible to add multiple field values displayed in a single combo box to a new table. Example ... if the Combo lists CustomerID (index visible)and CustomerName how can I take both fields and add them to a new table?

I know I can do it for the (bound) field but I'm at a loss as to the adding of the other field (CustomerName)

Any help would be greatly appreciated

Sorry ... I'm a bit of a newbie with Access

Thanks
Gary
 
Hi ghnat,

You can place an invisible field on your form bound to Customername.

On the after update event of the combo box CustID:

me![Customername] = me![CustID].column(1)

Just remember that the columns start at 0, ie if you set columns visible property to 2 it is not column 1 and 2 but 0 and 1.
 
It worked!

Thank you! Thank you! Thank You!

ghnat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top