Link to home
Start Free TrialLog in
Avatar of circa62
circa62

asked on

Populate one combo box based on another

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
ASKER CERTIFIED SOLUTION
Avatar of Zac Harris
Zac Harris
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of circa62
circa62

ASKER

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.'
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of circa62

ASKER

Found the specific answer that I was looking for online.