Hey all,
Long time lurker, first time poster. I've been working on an access database where a group will be calling into field offices to gather information. When the database opens a form pops up and they can use a combo box to select the agent's number and the information we have on file for them pre-populates in the form. They fill out the rest of the fields and click a submit button which saves to a table on the back end. All of this works fine.
They've now asked me to further automate the form by pre-populating the agent's number from the combo box above from a list of entries looking for agency numbers with the least amount of contacts in the CountOfAgencyName field and with and without a 'Yes' response in the MaxOfClosed field.
So far I've created a query to pull the relevant information but I've been unable to get the form to populate a number as it loads. I've tried several VBA attempts in an 'On Open' event when the form comes up but I don't know if it's possible to achieve. Do you have any suggestions? Thanks!
![]()