Before I start, I know there is much about "Cascading Combos" in the forums, but I'd rather not go that way.
I have a table of Servers (only field is Server ID) and a table of Domains (Server ID, Domain ID). This is one-to-many, as each server will have multiple domains within it.
I also have a table of Applications which has as part of its primary key Server ID and Domain ID (i.e. that's where the app is installed).
I have used the Lookup tab in table design to easily provide a drop-down list of Server IDs for any new Application record, coming straight from the Servers table.
I want to (simply) add a drop down to the Domain ID field to select Domain IDs that are defined *for the entered Server ID*.
I already have the referential integrity enforced, but would like this simple aid as there are heaps of Servers and lots of similarly named Domains. It's looking to me like this is not possible, as the nub of the issue is how to qualify the Server ID field in the new record i.e.
SELECT [Domain ID] FROM Domains WHERE Domains.[Server ID] = <current record>.[Server ID]
How to define <current record>?
I know some will say forms are the tool for this job, but I need to see lots of records at once as I am entering (or changing) data.
I may be hoping against hope that this lookup capability can cope with a simple composite key.
I have a table of Servers (only field is Server ID) and a table of Domains (Server ID, Domain ID). This is one-to-many, as each server will have multiple domains within it.
I also have a table of Applications which has as part of its primary key Server ID and Domain ID (i.e. that's where the app is installed).
I have used the Lookup tab in table design to easily provide a drop-down list of Server IDs for any new Application record, coming straight from the Servers table.
I want to (simply) add a drop down to the Domain ID field to select Domain IDs that are defined *for the entered Server ID*.
I already have the referential integrity enforced, but would like this simple aid as there are heaps of Servers and lots of similarly named Domains. It's looking to me like this is not possible, as the nub of the issue is how to qualify the Server ID field in the new record i.e.
SELECT [Domain ID] FROM Domains WHERE Domains.[Server ID] = <current record>.[Server ID]
How to define <current record>?
I know some will say forms are the tool for this job, but I need to see lots of records at once as I am entering (or changing) data.
I may be hoping against hope that this lookup capability can cope with a simple composite key.