Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Dependent combo box in sub form

Dependent combo box in sub form

Dependent combo box in sub form

hello friends
I am to ms access . I have a table with three columns ID, Fname , Lname . I have created a form in designer with sub form with three combo boxes bound to that table. I want to populate Fname , Lname when I select ID field . I have placed the query into row source of a combo box When I click the drop down arrow it just shows both columns .

CODE --> sql

SELECT Fname & "" & Lname FROM Table1 ORDER BY Fname, Lname; 

Can someone tell me how to do this?

RE: Dependent combo box in sub form

It would be good if you explained your table structures. Typically first and last names should be stored in only one record in only one table. Your question implies you are attempting to store this information in more than one table.

You can display the first and last names based on the selection of the id value using the Column() property.

Assuming combo box [cboID] with a row source of
SELECT ID, FName, LName FROM Table1 ORDER BY FName, LName;

To display the first name use a text box with this control source

To display the last name use a text box with this control source

Hook'D on Access
MS Access MVP

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close