Forum Discussion

NathanArreola's avatar
NathanArreola
Copper Contributor
Feb 11, 2022

Access combo box

My combo box on my navigation page won't pull the records for the items I select from the drop down. It instead will go through the records sequentially going from one item to the next rather than al...
  • George_Hepworth's avatar
    George_Hepworth
    Feb 12, 2022

    NathanArreola 

    From the final picture in your screen shot, it would appear that a sub was possibly lost and not replaced. You need to find the sub called "Combo32_AfterUpDate()" and restore it. If it was lost, go to the most recent backup before the crash.

     

    But that brings up another factor. I am assuming, of course, you have a backup protocol in place and that you do have available backups. If not, today is the best time start doing that.

     

    Also, it matters a lot if your relational database application is properly split into an accdb containing only the interface objects (forms, reports, VBA and queries) and an accdb containing only the data, in tables.

     

    If that's not already in place, do that as soon as you set up back ups. Maybe before doing that even.

     

    Users  get only a copy of the interface (usually referred to as the Front End or FE) on their own computer. That way, if one of them biffs their copy, you just replace it from the Master copy which you keep safe. All of the FEs connect to one accdb (usually referred to as the Back End or BE) in a shared folder on your network to which all users have proper read/write/delete rights. 

     

    As noted, though, there should be code behind the After Update event that selects the proper records as you wish. 

Resources