Queries are not working for you? How do you want to display the results?
A technique I use (using ADO since I do Access/SQL mostly) is to create a table that has all of the fields from all of the tables that I want. Then with the button click, run a delete query on the table to make sure it is empty, then start packaging the new data, first from, in your case, Tproject based on the project number (is this a number or text in your case? If number, your code is okay, if text, you need to add single quotes to your parameter). Then loop back through the table and for each record in the table, go out and get the pieces needed from other tables.
This is easy to do in ADO, but I don't work with DAO, so I am nit sure of the syntax.
Post the tables and their structures and what fields you want and how they are linked and we can help out.
mmcdonal
|