Nop, join would have been too easy, I know how to join multiple tables on multiple levels
If you look at the screenshot on first post, you may understand.
I save data from the red selection in another table than the blue selection. (edit: replace word database by table )
By default when I click on Save, I save the blue selection into "computers", but I save the red selection into "maintenance" when I click on the button "Add Maint." to get a track of all maintenances occured on this machine
What I want to do now, is to display in the lower grid the maintenances which concern only the current record.
For example if I display PcName=L2343, I want to see only the maintenances for this PCName not all maintenances for all PC, if I open another record, the query should show me the accurate data according to the current PCName, this is tricky!!
The trick is to get the PCName as a variable in the sql query... I am a bit tired right now. I will see tomorrow.