Results 1 to 2 of 2
  1. #1
    funkymuppet is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2014
    Location
    New York, NY
    Posts
    10

    Multiple Subforms with Related Data

    Hi,



    Looking for a bit of direction on designing a form to display information on Additions, Transfers and Usage for a specific Material ID - the DB relationships are shown below. The DB is a fly-tying materials DB, and materials are purchased, transferred between locations and used in tying. DB approach has been to define material types, and then have separate tables for additions, transfers and usage--the aggregate of the transactions then indicating the remaining balance in each location.

    Click image for larger version. 

Name:	AdditionsTransfersUsage.PNG 
Views:	10 
Size:	25.9 KB 
ID:	16024

    The MaterialID is the common data between each of the transaction tables. I use separate tables to define LocationID, SizeID, ColourID etc.

    I need a form that show the transactions for a given MaterialID, and that also would allow me to filter which transactions appear in each of the three subforms using LocationID, SizeID and ColourID (as they are common to all three tables). Can anyone give a few pointers as to how to approach it?

    I've had difficulty so far - as if I create a form based on the tblMaterialTypes table, and then have a combobox that selects MaterialID, then I get the Autonumber error when trying to change the combobox value and assigning it to MaterialID.

    Ultimately, I'd like to generate a report that lists all the relevant transactions, and then gives me the aggregate balances in each of the locations. But that's for another day.

    Many thanks indeed,

    JW

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,951
    I don't understand "change the combobox value and assigning it to MaterialID".

    If this combobox is for entry/selection of filter criteria it must be UNBOUND.

    A dynamic parameterized query as form RecordSource is one way to filter records. Review: http://www.datapigtechnologies.com/f...tomfilter.html

    Another method is to set form Filter and FilterOn properties: http://www.allenbrowne.com/ser-62code.html
    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. Replies: 6
    Last Post: 02-21-2014, 04:58 PM
  2. Tab index multiple subforms
    By TToc2u in forum Forms
    Replies: 3
    Last Post: 02-23-2013, 06:00 PM
  3. Replies: 1
    Last Post: 07-16-2012, 02:10 PM
  4. position multiple subforms
    By Mclaren in forum Programming
    Replies: 1
    Last Post: 07-12-2010, 08:52 AM
  5. Table related to multiple tables by single ID
    By MrTumnus in forum Access
    Replies: 1
    Last Post: 11-17-2009, 02:05 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