Results 1 to 4 of 4
  1. #1
    Kelsey is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Sep 2011
    Location
    United States
    Posts
    14

    Values in form

    I have the following code in my vendor combo box control on main form...

    Private Sub Vendor_AfterUpdate()
    Me!frmPurchaseOrderSub.Form!InventoryID.Requery
    End Sub

    Then in InventoryID I have the recordsource..
    InventoryID, Inventory Item, and VendorID with criteria
    [Forms]![frmPurchaseOrder]![Vendor]

    It all works great when I select a Vendor it limits the InventoryID's to items only from that vendor. When I add records and proceed to the next, it saves the values in my tables but if I scroll to the previous records, the InventoryID is blank.


    Any thoughts?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Is InventoryID a ComboBox control on the SubForm? Does it have a ControlSource?

  3. #3
    Kelsey is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Sep 2011
    Location
    United States
    Posts
    14
    Yes InventoryID is a ComboBox in SubForm. The ControlSource is InventoryID.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    The cbo is blank because nothing in the RowSource of the cbo matches the current value of the ControlSource.

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

Similar Threads

  1. How to hold the Values in Form.
    By cap.zadi in forum Forms
    Replies: 5
    Last Post: 09-05-2011, 09:38 AM
  2. Decimal Values on a form
    By cap.zadi in forum Forms
    Replies: 1
    Last Post: 09-04-2011, 02:39 AM
  3. Replies: 2
    Last Post: 08-10-2011, 10:07 PM
  4. Replies: 3
    Last Post: 04-04-2010, 05:26 PM
  5. Trying to take values from 1 form to another
    By slaterino in forum Forms
    Replies: 3
    Last Post: 05-16-2009, 02:00 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