Solved

Populate one combo box based on another

Posted on 2014-04-23
4
947 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 500 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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Combobox issue 4 27
How to make an ADE file by code? 11 42
DCount using "OR" 4 19
Access 2016 - IIf in a Query question 3 7
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now