Results 1 to 9 of 9
  1. #1
    Ephestion is offline Novice
    Windows 11 Access 2016
    Join Date
    Jul 2025
    Posts
    4

    Form, Category, Sub Category, Factors and Cascading Relational Tables

    I was wondering if there was a better way to organise the data that I have. It is part of an App which is in Access 97 and Im redesigning for either VB6 and Access 2000 or going MS Access 2016-21 which I have installed.

    Form 1 (All in a cascading one to many relationship)
    - Category (Form ID, Category Name, X, Y)
    --Sub Category (FormID, Category ID, X, Y)
    ---Factor 1 (FormID, CategoryID, SubCategoryID, X, Y)
    ---Factor 2 etc

    Now I want to print the Form Data with the factors and have people input values into a Forms_Factors_Jobs Table.
    Project
    -Jobs
    --Forms_Factors_Jobs

    But it gets to the point where the Factors used in the form need programming to assign to the Forms_Factors_Jobs.

    Any ideas?

  2. #2
    jojowhite's Avatar
    jojowhite is offline Competent Performer
    Windows 11 Access 2021
    Join Date
    Jan 2025
    Posts
    432
    you must first define the table structure:

    Category(table)
    CategoryID (autonumber) PK
    Category (short string)

    SubCategory(table)
    SubCategoryID (autonumber) PK
    CategoryID (Long) FK to Category table
    SubCategory (short string)

    Factor (table)
    FactorID (autonumber) PK
    FactorName (short string)

    Factors_Job (table)
    FactorID (autonumber)
    SubCategoryID (Long) FK to Subcategory table
    FactorID (Long) FK to Factor table

    you create a Form agains Factor_job and make FactorID and SubCategoryID as combobox to their respective
    Foreign table.

  3. #3
    Ephestion is offline Novice
    Windows 11 Access 2016
    Join Date
    Jul 2025
    Posts
    4
    Quote Originally Posted by jojowhite View Post
    you must first define the table structure:

    Category(table)
    CategoryID (autonumber) PK
    Category (short string)

    SubCategory(table)
    SubCategoryID (autonumber) PK
    CategoryID (Long) FK to Category table
    SubCategory (short string)

    Factor (table)
    FactorID (autonumber) PK
    FactorName (short string)

    Factors_Job (table)
    FactorID (autonumber)
    SubCategoryID (Long) FK to Subcategory table
    FactorID (Long) FK to Factor table

    you create a Form agains Factor_job and make FactorID and SubCategoryID as combobox to their respective
    Foreign table.
    Form is a table also so it would be
    Form (table)
    Category(Table)
    Sub Category (Table)
    Factor (Table)

    4 x one to many relationships cascading.

    Also what do you mean by FK

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    PK = Primary Key
    FK = Foreign Key

    What is nature of this database? What would Form table contain?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    Ephestion is offline Novice
    Windows 11 Access 2016
    Join Date
    Jul 2025
    Posts
    4
    Quote Originally Posted by June7 View Post
    PK = Primary Key
    FK = Foreign Key

    What is nature of this database? What would Form table contain?
    It's a checklist system.

    Checklist Form Table

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    A properly structured schema and properly designed forms should not require code to save data. Why do you think it would be in your case? Is code used in 97 version at the stage you mentioned is issue? If the 97 db works, why don't you just convert to accdb format?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    Ephestion is offline Novice
    Windows 11 Access 2016
    Join Date
    Jul 2025
    Posts
    4
    Quote Originally Posted by June7 View Post
    A properly structured schema and properly designed forms should not require code to save data. Why do you think it would be in your case? Is code used in 97 version at the stage you mentioned is issue? If the 97 db works, why don't you just convert to accdb format?
    When you get to the Factors being scored stage they become part of another cascading data series,

    Project
    -Jobs
    --ChecklistFormJobScoring

    So there needs to be a bridge between the Data storing the checklist fields and the fields used to score that checklist or fill it in.

    The conversion to accdb is not possible because the code and interface are in a split runtime database. It is entirely branched out to make use of mde files. The original database is gone except an archaic version of which still has all the needed tables.
    Also the conversion process would require MS Access 2010 or some version that can do the conversion. I only have Access 2019 and Access 97.

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Not really following explanation for code requirement. I would have to view database.
    Too bad you don't have the mdb, I would convert for you as I have 2010 on a laptop.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  9. #9
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,550
    I have 2007 still as well. I have converted a good few dbs for people here and on other sites.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

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

Similar Threads

  1. Replies: 2
    Last Post: 07-30-2018, 10:24 AM
  2. Replies: 1
    Last Post: 01-22-2016, 04:36 AM
  3. Sorting on multiple factors - Either using VBA or SQL
    By canadianacorn in forum Programming
    Replies: 2
    Last Post: 02-01-2015, 10:34 AM
  4. Generating a Query based on two factors
    By LeadTechIG in forum Queries
    Replies: 10
    Last Post: 01-22-2015, 02:51 PM
  5. Replies: 5
    Last Post: 05-10-2014, 09:24 AM

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