By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,572 Members | 946 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,572 IT Pros & Developers. It's quick & easy.

Want to update a junction table via forms page

P: 2
I have created a junction table so that I can relate data from 2 other tables.

Table 1 - Category Table (has the following fields with data)
CatID (primary key)

Table 2 - Names Table (has the following fields with data)
NameID (primary key)

Table 3 - Junction Table (has the primary keys from Tables 1 & 2 - input manually)

If I update the Junction table manually it works but I want to be able to use Access Forms to select the CategoryName and the Names fields from the 2 tables and the application be able to save the primary keys in the junction tables.
Mar 13 '07 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 10K+
P: 14,534
Even though you have created a junction table the relationship between the two tables is still many to many and as such cannot be displayed on one form. You will need to create a main form and a subform.

For example ...

Main form based on the Category Table and subform based on the following query.
Expand|Select|Wrap|Line Numbers
  1. SELECT CatID, Names.NameID, Names, NamesStatus
  2. FROM Junction INNER JOIN Names 
  3. ON Junction.CatID=Names.CatID;
Mar 13 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.