Question
Looking up a field's entries from another table
Not sure if I've best summarised that, but here's what I'm
looking to do.
Basically, at the moment I have two tables :
Employers
Contacts
But the eventual idea is for it to be a one-to-many set up, so any given employer can have many contacts.
I've gotten as far as creating the two tables, and all the pages to add / display / update / delete and search each of these.
The way it should work, is that a main record should always be created first in the Employers table.
But what I'd like to do is have a a drop down list on the 'Add Contact' form, which displays each existing 'Employer Name' from the Employers table, which acts to link that Contact to the existing Employer.
I presume this should be possible, but I'm not sure exactly how to go about it.
Any pointers much appreciated.
Basically, at the moment I have two tables :
Employers
Contacts
But the eventual idea is for it to be a one-to-many set up, so any given employer can have many contacts.
I've gotten as far as creating the two tables, and all the pages to add / display / update / delete and search each of these.
The way it should work, is that a main record should always be created first in the Employers table.
But what I'd like to do is have a a drop down list on the 'Add Contact' form, which displays each existing 'Employer Name' from the Employers table, which acts to link that Contact to the existing Employer.
I presume this should be possible, but I'm not sure exactly how to go about it.
Any pointers much appreciated.
