Results 1 to 3 of 3
  1. #1
    Stephanie53 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    246

    Need to start a new line...

    I have created a form for my Subparts..



    Now here is where I am lost....

    I am trying to have it after you select one of the Subparts it automatically goes to a new line to continue to select the parts needed for assembly until completed.

    Here is my code now that I have...tell me what I have to do to change it...
    Option Compare Database
    Private Sub cboSubpartsID_Change()
    Me.PrimaryID = Me.cboSubpartsID.Column(2)
    Me.Discription = Me.cboSubpartsID.Column(3)
    Me.Qty = Me.cboSubpartsID.Column(4)
    Me.UnitCost = Me.cboSubpartsID.Column(5)
    Me.NetWght = Me.cboSubpartsID.Column(7)

    End Sub


    Should that be AfterUpdate to start another line?

    TIA for all your help and support

    Stephanie

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    I've never used Change event I use BeforeUpdate or AfterUpdate. Why would this start are new record? Focus will go to new record when exiting the last control of current record. In this case, use BeforeUpdate to populate the other textboxes/fields of current record.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Stephanie53 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    246
    That worked!! Thanks!!

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

Similar Threads

  1. Line by Line Transactional Data Queries
    By defaultuser909 in forum Queries
    Replies: 7
    Last Post: 07-18-2012, 10:00 AM
  2. Replies: 7
    Last Post: 04-11-2011, 03:58 PM
  3. How to do line by line compare of VB code?
    By Buakaw in forum Access
    Replies: 2
    Last Post: 02-14-2011, 11:46 PM
  4. Replies: 5
    Last Post: 12-06-2010, 10:15 AM
  5. How to start
    By SlowPoke in forum Access
    Replies: 4
    Last Post: 09-16-2010, 07:41 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