?
Solved

Populate one combo box based on another

Posted on 2014-04-23
4
Medium Priority
?
993 Views
Last Modified: 2014-04-29
I have a Projects table with ProjectID, ProjectNumber, ProjectName etc. I have a Permits table with PermitID, ProjectID and also ProjectNumber and ProjectName. Project is the primary table with a 1 to many to the Permits table on ProjectID.

It's currently setup so that the project information must be filled out first and then the permit information. On the Project form, we may have only the ProjectNumber or ProjectName or Both at the time the record is created.

On the Permit form I have combo boxes for ProjectNumber and ProjectName and they show the available information from the Projects table. Right now I have to pick the ProjectNumber and ProjectName individually but I would like to have the projectname autofill when the projectnumber is selected or the projectnumber autofill when the projectname is selected. How can I do this? Thanks
0
Comment
Question by:circa62
  • 3
4 Comments
 
LVL 14

Accepted Solution

by:
Zac Harris earned 1500 total points
ID: 40017602
Hi

Try these Microsoft sites out to assist you:

Combobox population Office 2000 - 2003

Combobox population Office 2010
0
 

Author Comment

by:circa62
ID: 40017914
So I followed the instructions in one of the articles above and have the projectnumber combo box populating with the available matches from the projects table. When I try to select a projectnumber to see if the project name will populate I get a message that says "cannot add records; join key of table 'tblPermits' not in recordset.'
0
 

Assisted Solution

by:circa62
circa62 earned 0 total points
ID: 40018114
I found the detailed instructions on the Microsoft Community where I didn't need the cascading combo boxes after all. Thanks for the help though.
0
 

Author Closing Comment

by:circa62
ID: 40029087
Found the specific answer that I was looking for online.
0

Featured Post

Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question