Link to home
Start Free TrialLog in
Avatar of elschott
elschott

asked on

Create Components on the fly

Using delphi I have a combobox which has a list of departments the user selects the appropriate department, when this is done a database is accessed and should list all the people in the department and provide an input field for each person in the department to capture some data to be returned to the database, there are varying numbers of people in each department. Would this be an area when I would create a series of components on the fly? if so how would I do this

Thanks

Jake
SOLUTION
Avatar of rfwoolf
rfwoolf
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I also want to clarify what I said about using TQueries when the user has chosen the 'database' (table) that they want to see - it can be any dataset, including TTable or TADOTable and you can just set the DBGrid's DataSource to the Datasource that's connected to your dataeset.
A Query was just a good way to do that, but some programmers (like myself) use a lot of TTables instead for certain reasons.
SOLUTION
Avatar of kretzschmar
kretzschmar
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial