Query in Form

J

John

My first form allows the user to select a year group.
Based on this decision a second form is displayed. Within
this a combo box is displayed with a list of names. This
has been populated through a query based on the answer to
the first form.

What I want is for a persons AdminNumber (held in the
query) to be displayed when a persons name is selected
from the combo box.

Apologies for this maybe not making too much sense, hope
you understand the general sense of what I'm trying to get
at.

Thanks.
 
J

John Vinson

What I want is for a persons AdminNumber (held in the
query) to be displayed when a persons name is selected
from the combo box.

Apologies for this maybe not making too much sense, hope
you understand the general sense of what I'm trying to get
at.

If the AdminNumber is in the combo box's RowSource query, you can
display it on the form by adding a textbox with a Control Source of:

=comboboxname.Column(n)

where n is the *zero based* subscript of the field - i.e. (2) would be
the third field in the query.
 

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