Results 1 to 2 of 2
  1. #1
    Degs29 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    May 2013
    Posts
    38

    Lists in subsequent records updating based on selection in first record upon re-open.

    I have a form/subform combo with the following relevant fields:

    Form:
    Supplier

    Subform:
    Item - combo box based on supplier
    Description - this is just Item.Column(1)

    What currently happens is when I re-open the form after making previous entries, Item lists in all records are based off the Supplier chosen in the first record, rather than their respective records. It still displays the correct information in the Item field, but if you go to make an adjustment, you get the wrong list. Also, the description field is blank (once again, only where the supplier of said record differs from the supplier in the first record).

    I'm using the following code to update the Item list upon Supplier selection:

    Code:
    Private Sub Supplier_AfterUpdate()
      Forms![RawMaterialReceiving]![RawMaterialReceivingSub].Form![Item].Requery
    End Sub
    What I want is for each record to have the correct Item list and Description based on respective Supplier selection.


    Thanks for any help!

  2. #2
    Degs29 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    May 2013
    Posts
    38
    Never mind, just found out what the On Current control does!

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

Similar Threads

  1. Report To Open Based on Comobox Selection
    By Njliven in forum Access
    Replies: 15
    Last Post: 05-10-2013, 12:37 PM
  2. Open Report based on list box selection
    By BorisGomel in forum Access
    Replies: 2
    Last Post: 04-17-2013, 02:41 PM
  3. Replies: 1
    Last Post: 01-08-2013, 02:55 PM
  4. Replies: 2
    Last Post: 03-01-2012, 03:11 PM
  5. Record Selection, email and then table updating
    By ballj_35 in forum Programming
    Replies: 4
    Last Post: 10-05-2010, 01:41 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