Results 1 to 6 of 6
  1. #1
    hell bomb is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    3

    Create form with category and sub category field.

    I am trying to create a form that I can use to create new categories and sub-categories of equipment. I have been struggling with this form for about 2 days now, could I get some assistance? Not asking for someone to do it for me, just point me in the right direction or let me know what is the correct way to do this.

    I the following tables with the following categories

    tblEquipmentType_Main


    - EquipmentTypeID
    - EquipmentTypeName

    tblEquipmentType_Sub
    - EquipmentSubTypeID
    - EquipmentTypeID
    - EquipmentSubTypeName

    tblEquipmentType_Join
    - JoinID
    - EquipmentTypeID
    - EquipmentDescription

    I am trying to have a single form to create equipment types and sub-types but can't seem to fit all the pieces together properly to get it working.

    Click image for larger version. 

Name:	Capture.PNG 
Views:	11 
Size:	10.3 KB 
ID:	16424
    Attached Files Attached Files
    Last edited by hell bomb; 05-10-2014 at 08:36 AM. Reason: Added picture of form to give better idea of my problem

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    You want to create records in Join that associate records from Main with records from Sub?

    Options:

    1. single form bound to Join with two comboboxes, one for selecting record from Main and one for selecting record from Sub

    2. form bound to Main and a subform bound to Join with combobox to select record from Sub

    2. form bound to Sub and a subform bound to Join with combobox to select record from Main

    Of course, records must already exist in Main and Sub. Adding them 'on-the-fly' while creating records in Join will require code in combobox NotInList event.
    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.

  3. #3
    hell bomb is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    3
    I am trying to use this one form to add create categories and sub categories stored in their respective tables. The sub-type field should be optional. Can I get a little more detail how to accomplish this?

  4. #4
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,725
    see this for some additional info

  5. #5
    hell bomb is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    3
    @orange

    Actually I have watch that video before not its not exactly what I am looking to accomplish.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    A BOUND form can enter record for only one table. What is it you do not understand about the options I listed? The only other approach is UNBOUND form and VBA code to write records to tables.
    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.

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

Similar Threads

  1. Category and SubCategory
    By dgp0099 in forum Access
    Replies: 5
    Last Post: 05-07-2014, 06:30 PM
  2. Replies: 1
    Last Post: 07-08-2013, 01:09 PM
  3. New Database or New Category?
    By GCS in forum Access
    Replies: 3
    Last Post: 08-13-2012, 01:59 PM
  4. Query for each category
    By snowboarder234 in forum Queries
    Replies: 1
    Last Post: 07-03-2012, 01:52 PM
  5. Category redesign
    By squirrly in forum Database Design
    Replies: 16
    Last Post: 12-13-2011, 06:32 PM

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