Populate one combo box based on another
Posted on 2014-04-23
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