Results 1 to 2 of 2
  1. #1
    phroureo is offline Novice
    Windows 8 Access 2013
    Join Date
    Nov 2014
    Posts
    1

    Use a field from another form in a table

    I have two tables.



    One is "Inventory Items." Fields are InvItemID (PK), Item Name, Part Number, Vendor, and Price.

    Two is "Inventory Transaction." Fields are InvTransID (PK), InvItemID (FK), and Number Ordered.

    I have a form that will add items to the "Inventory Items" table.

    I want to create a form that will add a record to the "Inventory Transaction" table. However, I want to be able to add the items based on the Item Name from the "Inventory Items" table, and not have to remember the InvItemID for each thing.

    How would I go about doing this?

    EDIT:Never mind! I figured it out. I used a combo box to request the info from the Item Name field, and then stored it in the InvItemID field.

  2. #2
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    You're describing the classic Main Form (Inventory Items)/Subform (Inventory Transaction) scenario. Your InvItemID Field would be used in the LinkMasterField/LinkChildField Properties of the Subform Control.

    After entering or selecting the appropriate Record from the Main Form (Inventory Items) you'd enter a Record or Records in the Subform (Inventory Transaction) and the Access Gnomes would automatically populate the InvItemID Field in the Subform with the InvItemID Field from the Main Form.

    Linq ;0)>

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

Similar Threads

  1. Replies: 1
    Last Post: 04-26-2013, 05:30 PM
  2. Replies: 1
    Last Post: 04-21-2013, 03:20 PM
  3. Replies: 5
    Last Post: 11-01-2012, 09:26 AM
  4. Replies: 5
    Last Post: 10-24-2012, 12:35 PM
  5. Convert form to Table or Add Field to Table
    By jlclark4 in forum Forms
    Replies: 1
    Last Post: 12-15-2010, 01:52 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