Results 1 to 2 of 2
  1. #1
    Kevo is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2011
    Location
    Kodiak, Alaska
    Posts
    86

    Update Inventory in Subform

    Hi,

    What I would like to do is Choose an "assembly" from a combobox and have the subform open up the list of instruments in the assembly.


    Then have 2 textboxes below with "QtyUsed" & "QtyReceived" and a button for "update inventory".....

    On click event for the button it will update QtyOnHand in list of subform.

    Something like "QtyOnHand = QtyOnHand - QtyUsed + QtyReceived"

    Can this be done? I have tried several ways but not quite getting it.

    Do you make the subform a combobox so when you choose a record it has focus? Or is their a way to show the whole list of records (datasheet view) and still be able to update particular record with buttons below?

    Hope my question is clear.

    Thanks,
    Kevin

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    You can do your calculation for Quantity and then set the value of the QtyOnHand control on the subForm to Quantity:
    Forms!YourFormName.Controls!QtyOnHand = Quantity
    Have you tried something like that already?

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

Similar Threads

  1. Update field in Subform
    By j2curtis64 in forum Forms
    Replies: 5
    Last Post: 04-06-2011, 07:12 PM
  2. Update Subform Recordsource
    By mystifier in forum Forms
    Replies: 8
    Last Post: 11-15-2010, 03:03 AM
  3. Update field in table after update on a subform
    By jpkeller55 in forum Queries
    Replies: 3
    Last Post: 09-30-2010, 08:02 PM
  4. Inventory Entry Update help
    By Richard in forum Access
    Replies: 8
    Last Post: 03-12-2010, 01:32 PM
  5. update recordsource of subform
    By AndyKim in forum Forms
    Replies: 1
    Last Post: 06-16-2009, 09:15 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