G
Guest
This is going to be complicated, kind of.
I have 3 tables (users, certifications, locations) and each has its own PK
ID. The users table is what the other two are joined on to. So the table
structures are like so:
users:
ID_USER (PK), firstName, lastName, cert (FK to ID_CERT), location (FK to
ID_LOC)
certifications:
ID_CERT (PK), certification
locations:
ID_LOC (PK), company, address1, address2, city, state, zip, phone, fax
Now, in my form I have a query that just grabs all the information, no
criteria. Problem is, I need to limit how many "certifications" there are.
So that table is prepopulated with 5 entries.
After I've populated my users table with 5 people (all having different
certifications) then if I go to enter a new user, the certification repeats
itself. This is not what I want.
So the question is this:
Is there a way for me to use a combobox that will show the textual value of
the field certifications.certifications while using the value ID_CERT and
insert the value ID_CERT into the users table and leave the certifications
table untouched?
I know that in mySQL it'd be much easier to do. Essentially, the SQL
statement I need to execute is something like:
INSERT INTO users ('firstName', 'lastName', 'cert', 'location') VALUES
('test', 'user', '3', '9');
INSERT INTO locations ('company', 'address1', 'address2', 'city', 'state',
'zip', 'phone', 'fax') VALUES ('Pseudo', '123 blank way', '', 'Somewhere',
'CA', '12345', '123-456-7890', '000-000-0000');
I'm just having a little trouble figuring why I can't get the combobox to
work as I want. Everything else does!!!
I have 3 tables (users, certifications, locations) and each has its own PK
ID. The users table is what the other two are joined on to. So the table
structures are like so:
users:
ID_USER (PK), firstName, lastName, cert (FK to ID_CERT), location (FK to
ID_LOC)
certifications:
ID_CERT (PK), certification
locations:
ID_LOC (PK), company, address1, address2, city, state, zip, phone, fax
Now, in my form I have a query that just grabs all the information, no
criteria. Problem is, I need to limit how many "certifications" there are.
So that table is prepopulated with 5 entries.
After I've populated my users table with 5 people (all having different
certifications) then if I go to enter a new user, the certification repeats
itself. This is not what I want.
So the question is this:
Is there a way for me to use a combobox that will show the textual value of
the field certifications.certifications while using the value ID_CERT and
insert the value ID_CERT into the users table and leave the certifications
table untouched?
I know that in mySQL it'd be much easier to do. Essentially, the SQL
statement I need to execute is something like:
INSERT INTO users ('firstName', 'lastName', 'cert', 'location') VALUES
('test', 'user', '3', '9');
INSERT INTO locations ('company', 'address1', 'address2', 'city', 'state',
'zip', 'phone', 'fax') VALUES ('Pseudo', '123 blank way', '', 'Somewhere',
'CA', '12345', '123-456-7890', '000-000-0000');
I'm just having a little trouble figuring why I can't get the combobox to
work as I want. Everything else does!!!