Solved

Populate one combo box based on another

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
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…

860 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