Results 1 to 5 of 5
  1. #1
    HansBades is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Dec 2021
    Posts
    85

    Form Based on SKU Category

    I have a table for SKUs that includes the ID, Name, Description, and SKU Category ID. Of course there is another table for SKU Categories. Each SKUID must have a corresponding SKU Category it falls into. I am trying to create a form so that someone can use a combobox to drop down the particular SKU Category Name and then load at once many new SKUs that would fall under that category. I tried to setup the form with a datasheet view but I can't get the combobox to work so that whatever they enter is attributed to the particular SKU Category. Any thoughts? thanks.

    SKUID
    SKUNAME
    SKUDESCRIPTION
    SKUCATIDFK

    SKUCATID
    SKUCATNAME


    SKUCATDESCRIPTION

  2. #2
    kd2017 is offline Well, I tried at least.
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    1,165
    There's a lot of ways to skin this cat. The quickest way would be to create a form based off the SKU categories table, then on that form place a subform for the SKU item table and link the skucatid is the parent related field and skucatidfk is the child related field. Then any skus records you create in the subform will automatically be linked to the SKU category currently in the parent form.

  3. #3
    HansBades is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Dec 2021
    Posts
    85
    Thank you. I did that and it worked.

  4. #4
    HansBades is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Dec 2021
    Posts
    85
    I have the subform in datasheet view. Is there any way to copy and paste multiple skus at one time?

  5. #5
    Join Date
    Apr 2017
    Posts
    1,793
    Quote Originally Posted by HansBades View Post
    I have the subform in datasheet view. Is there any way to copy and paste multiple skus at one time?
    Recreate the form used in subform (NB! Subform is a container control, which has a form as Source. By default Access use the same name the form has as subform name too - I myself always rename the subform to avoid any possible future confusion. Eg. the form is named fFormName, the subform based on this form is named sfFormName.) as continuous one.

    When you create continuous form instead of datasheet one with same name, then probably this is all you need to do. When the names differ, you have to edit the Source of subform. And in case you delete the old source form of subform through the process, to avoid any error messages popping up, don't activate the parent form until the new form for subform is ready!

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

Similar Threads

  1. Replies: 8
    Last Post: 10-07-2018, 05:24 PM
  2. Replies: 3
    Last Post: 07-26-2016, 02:12 PM
  3. Replies: 1
    Last Post: 01-22-2016, 04:36 AM
  4. Replies: 5
    Last Post: 05-10-2014, 09:24 AM
  5. Multiple "category fields" in a form
    By QuakinTom in forum Access
    Replies: 2
    Last Post: 03-25-2014, 03:49 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