A friend has asked me to bring somestructure in his old Access .mdb database , allrhough I have noexperience with Access. First I made a simple test-database with 3connected tables.
tbLand :
LandID Auto-increment Primary key
LandName Text
tbActivities
ActivID Auto-increment Primary key
LandID numeric
Activity text
tbFromTo
FromToID Auto-increment Primary key
ActivID numeric
StartDate Date
EndDate Date
and made the connexions
The Access Relations screen shows thatlbLand – tbActivities is a one to many relation and so istbActivities – tbFromTo
So for so good.
Then I dragged the 3 tables to 1 formand put some values in.
To test this I made a little program inDelphi XE7 using an ADO connection and got exactly what I wanted :clicking tbLand only showed the Activities connected with the clickedtbLand row etc.
In the Access database however I cannotget this to work ! I tried the OnClick option in SubForm subLand butnothing I tried worked ! The very primitive and complex way Accessuses subforms when you put 3 tables on 1 form makes it impossible forme. It should be simple to define a filter and set it on , but I justcannot find out how that filter should look !
Please help.
(I hope I used the right terms as theAccess database is in Dutch !)
Just tried to add a .zip file but it wouldn't upload !