Getting combobox/listbox data into a table

C

Chad Cameron

Hi All,

On my form, the user selects a company from a combobox. Then a listbox
populates with the contractors from that company. The user then selects 1
contractor and my subform populates with all the procedures that the
contractor has signed off. Everything works great (thanks to this
newsgroup).

Now, once I have the company & contractor selected. I see the procedures
he/she has and I want to add another procedure (as they are signed off).
When I do this, The CompanyID & the ContractorID are empty in my table, but
the procedure is listed. This makes sense, so...

I need to know how to get the CompanyID & the ContractorID from the Combobox
& Listbox and put them into the table. I am assuming I could have some
hidden textboxes, just wondering if there is a better way.

Thanks for everyone's help,
Chad
 
Y

yvette estrada

Chad Cameron said:
Hi All,

On my form, the user selects a company from a combobox. Then a listbox
populates with the contractors from that company. The user then selects 1
contractor and my subform populates with all the procedures that the
contractor has signed off. Everything works great (thanks to this
newsgroup).

Now, once I have the company & contractor selected. I see the procedures
he/she has and I want to add another procedure (as they are signed off).
When I do this, The CompanyID & the ContractorID are empty in my table,
but the procedure is listed. This makes sense, so...

I need to know how to get the CompanyID & the ContractorID from the
Combobox & Listbox and put them into the table. I am assuming I could
have some hidden textboxes, just wondering if there is a better way.

Thanks for everyone's help,
Chad
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top