returning values from a combobox

P

papa

Hi Guys,

I need help with the following problem:

I have a combobox called "teams", when you click on any
entry in this combobox it automatically fills my other
combobox "agents" with all the agents of that particular
team. (this works fine!).

After you pick the agent you need it opens a new form
called "frmTaxiProcurement" which then has the agents
name displayed (this works fine!!)

What I need help with is, I want this form
("frmTaxiProcurement") to display all of this agents
details: address, telno, manager, etc. this information
is stored in a table called "TBL_TAXI_REQ_DETAILS".

Is there an easy way to make this happen?
Most of what I want shown are just textboxes but there
are also checkboxes...


Many thanks,
Papa
 
G

Guest

Bind form "frmTaxiProcurement" to table
"TBL_TAXI_REQ_DETAILS". When you open the form, use a
WHERE clause specifying that the Agent in the table is
equal to the Agent in the ComboBox.

The syntax would be something like:

"WHERE [tbl_Agent_Field_Name] = Me![teams]

Make sure that the bound column of the teams combobox
contains the same data as "tbl_Agent_Field_Name".

Good luck,

Chuck
 
C

Chuck Minarik

Papa,

I looked back at my response and realized it could have
been clearer. The where clause would actually be:

"WHERE [tbl_Agent_Field_Name] = " & Me![teams]

Chuck
-----Original Message-----
Bind form "frmTaxiProcurement" to table
"TBL_TAXI_REQ_DETAILS". When you open the form, use a
WHERE clause specifying that the Agent in the table is
equal to the Agent in the ComboBox.

The syntax would be something like:

"WHERE [tbl_Agent_Field_Name] = Me![teams]

Make sure that the bound column of the teams combobox
contains the same data as "tbl_Agent_Field_Name".

Good luck,

Chuck
-----Original Message-----
Hi Guys,

I need help with the following problem:

I have a combobox called "teams", when you click on any
entry in this combobox it automatically fills my other
combobox "agents" with all the agents of that particular
team. (this works fine!).

After you pick the agent you need it opens a new form
called "frmTaxiProcurement" which then has the agents
name displayed (this works fine!!)

What I need help with is, I want this form
("frmTaxiProcurement") to display all of this agents
details: address, telno, manager, etc. this information
is stored in a table called "TBL_TAXI_REQ_DETAILS".

Is there an easy way to make this happen?
Most of what I want shown are just textboxes but there
are also checkboxes...


Many thanks,
Papa

.
.
 

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