Results 1 to 3 of 3
  1. #1
    Haoming0 is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2017
    Posts
    5

    Unable to filter sub Datasheet form please help me please!!!

    INTRODUCTION
    I have no programming background and have been given a school project on creating an access database.

    I have encountered a problem that I was unable to solve even with a week of research!! hoping someone knowledgeable can help me with it so that I can continue to the next phase of my project!

    I will be attaching a sample access database to better explain the function that I want and the problem that I'm currently facing!

    __________________________________________________ ___________________
    TABLE CREATION
    The database consist of 2 tables:
    (** are the keys for each table)Files.zip

    1)Delivery_Order (The orders that consist of 3 fields: Delivery_Order_ID**, Customer_Name, Date_Out)
    2)Delivery Order_Products (The items that is in each order that consist of 4 fields: Count_ID**, Delivery_Order_ID, Product_Name, Quantity)

    I have linked the field from (Delivery_Order ---Delivery_Order_ID**) to (Delivery Order_Products---Delivery_Order_ID) one to many

    __________________________________________________ ___________________
    SPLITFORM CREATION
    I then created split form for both the tables.
    However, when i add the (Form: Delivery Order_Products) as subform into (Form: Delivery_Order), the split form from (Form: Delivery Order_Products) disappeared.
    After researching for sometime, i came upon a website that taught me how to manually create a split form using VBA.

    Website: https://www.datanumen.com/blogs/how-...ess-using-vba/

    With the instructions, i have then manage to create my own database(attached in the post).
    If you look at my attached database, there is a total of 3 Forms:

    1)Delivery_Order
    2)Delivery_Order_Products
    3)Delivery_Order_products_Datasheet

    (Formelivery_Order_products_Datasheet) has been added into (Form: Delivery_Order_Products) which creates a split form for (Table: Delivery Order_Products)

    Click on (Form: Delivery_Order) and you can see that (Form: Delivery_Order_Products) have been added inside.
    Which means that there is now a sub splitform inside the main splitform.

    __________________________________________________ ___________________
    PROBLEM:
    Click on attached database (Sample1)
    The problem now is that when i select any Delivery Order from the mainform,the Datasheet from the subsplitform does not filter away the rest of the unwanted records.

    Click on attached database (Sample2)


    I then tried to play around with the functions.
    On both (Form: Delivery_Order_Products) & (Form: Delivery_Order_products_Datasheet), (Link Master Field) and (Link Child Fields) is changed to (Delivery_Order_ID)

    Now the Datasheet from the subsplitform filters according to the selected delivery order from the mainform.
    However, when trying to select on the records for each product, it always bounce back the first record for the selected Delivery Order.

    __________________________________________________ ___________________
    CONCLUSION:

    Apologize for being long winded as ive no background on database and didnt want to miss out any details!
    Hopely this is clear enough!
    Please help me thanks!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    stop using split form. I have never had a problem with single record master form, and the subform (datasheet or continous).

    Seems people keep having problems with split forms.

  3. #3
    Haoming0 is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2017
    Posts
    5
    oh okay.. thanks!

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

Similar Threads

  1. Replies: 9
    Last Post: 04-15-2015, 12:05 PM
  2. Replies: 13
    Last Post: 08-22-2013, 02:37 PM
  3. Replies: 1
    Last Post: 08-01-2012, 03:56 PM
  4. Datasheet Form Filter By Multiple Fields
    By snoopy2003 in forum Programming
    Replies: 4
    Last Post: 03-14-2012, 03:22 PM
  5. Replies: 2
    Last Post: 02-23-2012, 09:03 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