Forum Discussion
Combo box does not find record on form
Let's start with the background to the situation.
These dropdowns have as their recordsource, I assume, production tables such as "customer" or "project' or "sales". You can actually see the records in the combo box, but the code that is supposed to move the form's focus to that record in the table doesn't result in that change.
Does the code even fire on the second laptop? You created a macro, not VBA, which makes it a lot harder to trouble-shoot. You can try stepping through the macro, though, to see if you can identify something useful.
On the second laptop, is Trusted Locations enabled for the folder where the accdb is located? If not, got to the Trust Center and indicate where the accdb is as a Trusted Location.
2. I don't know if the code fires, I will look into that. BTW, if there is an easy way to convert macros into VBA I would gladly do that.
3. Trusted Location was enabled upon initial bootup of database on second laptop.
Thanks.
- George_HepworthDec 23, 2021Silver Contributor
Yes, you can convert macros to VBA, although it's quite rudimentary.
You can then step through the VBA to see what is happening at each step of the code.