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!

using combo box to input a value in a table

Status
Not open for further replies.

stickooo

Programmer
Jun 9, 2002
24
ID
Hi,

I have a table calls "period", that has period id, and a date.

I would like to use a combo box (in form "bills") to show the values of table period, and then save it to field "time" in table "bills"

So far, I am able to do it. But the problem is, instead of saving the date (from "period"), it saves the period id to the field

Anyone know how to fix this in a simple way ?

thanks
 
Assuming your combo box is picking up both fields, i.e. Id and period, then Id will be in column(0) of the combo and period will be in column(1)
so set field "time" in table "bills" to comboboxname.column(1)
 
Hi,

This sounds like the solution. But, I don't know where should I set it (comboboxname.column(1)).

Can you explain it more.

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top