Exactly. This is all abt tying client_id to the client, making sure they access only their records.
Anyway, I wanted to use several forms for this application. And doing it that way meant I'd have to pass the client_id from form to form for the various queries. But since I can't figure out how to do that, I settled on just using a TPageControl component. I don't like this approach as much. But until I know how to work it out another way, this will work.