Results 1 to 2 of 2
  1. #1
    Tunesmithnw is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2019
    Posts
    1

    Newbie Question: Want to populate fileds of one table based on one field in another.

    Hi all. Sure this has been asked before but I'm not even sure how to word it, much less search for it. Creating a photography tutorial db. So far have two tables: tblCategories that has CategoryID - Auto #/Primary Key and CategoryName - Text field/ListBox. I have already populated that table with the only 4 values (words) I want in it.
    *
    Have another table: tblSubject. SubjectID - auto #/primary key, SubjectName - text, and CategoryID - number. I do not have anything in this table yet.
    *
    All I want to do is create a query that will let me populate the tblSubject with the SubjectID, SubjectName, and select one of the 4 values from the tblCategories. I have tried everything I can think of but cannot get it to work. The list of values in the CategoryName feild is always blank.


    Each Subject can have only one of the four Category values.
    *
    I'm doing it this way because I may need the tblCategory for other tables and queries that I intend to add to this db. Plus, now I'm determined to figure out how to do this.
    Any suggestions would be very greatly appreciated.
    Thanks so much.

  2. #2
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,413
    tunesmith-davegri-v01.zip
    How about this? Took about 10 minutes.
    If you want it the other way around, with subject as the main form and category as the subform, the foreign key will have to be swapped to tblCategories, the relationships changed and the main/subform reconfigured.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 7
    Last Post: 01-12-2018, 09:26 AM
  2. Replies: 7
    Last Post: 08-10-2017, 12:53 AM
  3. Replies: 12
    Last Post: 11-18-2012, 03:53 PM
  4. Replies: 5
    Last Post: 09-21-2012, 11:23 AM
  5. Populate fileds off the last record
    By BorisGomel in forum Access
    Replies: 3
    Last Post: 11-09-2011, 11:37 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums