Results 1 to 3 of 3
  1. #1
    Kaloyanides is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Jan 2015
    Location
    Arlington, MA
    Posts
    51

    Question Combo Box After Update Programming Question

    I use MS Access to generate Sales Invoices.



    On the sales order form, there are combo boxes for each line item.

    You enter an item number or select the item name from drop-down and then an after update even fires. The after update event populates and updates a number of additional fields.

    One of the fields the after update event updates is the item cost field.

    However, AFTER the order is entered and AFTER the cost field is updated we'll buy the item and there will be a new cost.

    I need a way to cycle or loop through a continuous form and run the after update event for every populated combo box.

    I can't seem to figure out how to do this.

    I need to do the same for check boxes but I'm assuming i'll be able to easily incorporate.

    If anyone has the expertise and a min to help me out - I'd greatly appreciate it.

    frmSalesOrders
    ItemsPanel
    Name: cboName
    Control Source: InvoiceItemDescription

    Check Boxes: ckUnit

    Thx so much!!!

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,411
    use an update query rather than cycling through the form - use the form recordsource and filter/link to create the basic query

    not enough information to be any more specific

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2016
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    Further to Ajax's comments, it would be helpful if you could show us your tables and relationships to help with context. A demo copy of your database would also be useful to responders.

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

Similar Threads

  1. Access 2010 database programming question
    By napiedra in forum Programming
    Replies: 17
    Last Post: 11-09-2013, 12:00 AM
  2. Trouble programming combo boxes
    By trolleri in forum Forms
    Replies: 6
    Last Post: 04-10-2013, 02:00 PM
  3. Simple Programming Question
    By EvanRosenlieb in forum Programming
    Replies: 5
    Last Post: 11-18-2011, 04:31 PM
  4. Basic report programming question.
    By sepoto in forum Programming
    Replies: 1
    Last Post: 04-06-2011, 07:45 PM
  5. programming button to update records
    By lstairs in forum Programming
    Replies: 5
    Last Post: 02-04-2010, 08:07 AM

Tags for this Thread

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