Hi everyone,
I have two tables, Organisation and Division. One to many relationship (one organisation can have many divisions).
On the organisation form, there is a combo box to select the divisions associated with that organisation. What I'm finding is getting me very confused.
I have an organisation, Aberdeenshire Council, and about 20 other organisations all different. When I drop the combo box down for an organisation which doesn't have any divisions listed in the division table for that organisation, I am getting the divisions listed for Aberdeenshire Council. All the other organisations which also don't have division details listed in the division table also display the divisions for Aberdeenshire Council.
Can somebody please explain to me what I have done wrong?
Organisation Table
Organisation ID autonumber primary
OrganisationName
Division Table
DivisionID autonumber primary
OrganisationID (Lookup option used to establish query)
DivisionName
underlying query in the combo box
Code:
SELECT [Division].[DivisionID], [Division].[OrganisationID], [Division].[Division] FROM Division ORDER BY [Division];
Something here is just not looking right. I'm not a programmer, so I can't quite place it but something there doesn't seem right