I’m designing a database application in Access. I’m trying to do something that seems simple on the surface, but I can’t for the life of me figure out how to do it cleanly. I’m pretty good with Access, but not only am I not an expert I’m also self-taught, which means there are a lot of little things I don’t know about. Can someone help?
What I need to do is very straightforward, to wit: The user is working with data on a form; the dataset is a list of people. I want the user to click a button to call up a separate form with a separate function, one that shows a totally different set of data for the same group of people. Here’s the trick: I want the new form to pop up with the same person active as on the first form. I want all the same data available, but I want to match the active record from the first form and jump to that same person on the second form when it appears.
I tried SQL WHERE, filtering, etc., and I couldn’t get them to work (probably because I’m doing it wrong). I also looked into matching record numbers, but I couldn’t figure out how to bring the first form’s number forward. (I recognize this could probably be done with Visual Basic, but I know very little about it, so I’m not able to create a module from scratch to do this.)
At any rate, I abandoned that and whipped up an ugly, kludgy macro that copies the name from the first form to the clipboard, opens the second form, and pastes the name into the built-in “find” function to locate that name. It works, but even with “echo off,” the modal “find” window still appears, which makes it an ugly and unprofessional-looking solution. If I can’t come up with anything else, I’ll leave it as is, because it does work as intended, but I’d really like to have something simpler and cleaner.
I’m sure this is one of those simple tricks Access experts use all the time, and I’ll probably be embarrassed at my ignorance if somebody can offer an easy, obvious alternative. But, really, to me, it’s preferable to face the embarrassment for a few minutes (and learn something cool) than it is to put up an expert facade and pretend the kludgy fix doesn’t bother me.
Anyone?