Update with query

kevygee

Registered User.
Local time
Today, 05:19
Joined
Jun 7, 2005
Messages
32
I have a database that has a many to many relaitionship between people and the reports these peolpe are related to. I am working on a form for one of these reports. So far, I have a subform on the report to list all the people associated with the report. There's a combobox that lists all the people, and to enter them into the subform you just have to select the person from the dropdown box and add that person to the subform. This works great.

Now, often times, a report will apply to people that have something in common. So for example, all the people working in the finance department. And there could be about 50 of them, and it's hard to tell everyone that's in the finance department from a simple combobox. I would like to add functionality that allows the user to add a group of people based on a query. I've had a few failed ideas, but perhaps someone else can think of a way to achieve this functionality.

I currently can get a list of the names of the saved queries, and have the user select one, but once they select I have no idea how to get the underlying sql or to actually run the query. And since the users won't know SQL all that well, it would be useless to put in a textbox for them to type sql. Any ideas?
 
How about having another column in your combo box which displays the department that person is in? Is this what you mean or have i missed the point?
 
Yeah, I mean that's an option, and the one that I'm currently implementing. The real problem would be having to select all 100 people in the same department, one at a time. This could be a long time. I want a solution that will allow the user to add multiple people easily. Such as based on a query.

Is that more clear? Thanks in advance.
 

Users who are viewing this thread

Back
Top Bottom