Results 1 to 2 of 2
  1. #1
    jree3000 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Jun 2014
    Posts
    40

    Need subform to automatically add record to each new form record


    I have an order form that utilizes a payment subform. I need the payment subform to automatically create a record each time a new order is entered. (The subform payment status defaults to "unpaid", I need this to be automatically generated every time an order is entered to run a different query that assesses payment status.) What's the best way to go about doing this? Thanks in advance!

  2. #2
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,521
    Make a button that runs a macro
    this macro (or vba code) that will have queries that:

    appends this new order record to the order table,
    and appends a new payment record to the payment table
    open the form using this new key (or cust# and timestamp)

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

Similar Threads

  1. Replies: 4
    Last Post: 03-28-2014, 12:38 PM
  2. Replies: 5
    Last Post: 08-12-2013, 10:00 PM
  3. Replies: 8
    Last Post: 08-09-2013, 09:52 AM
  4. Replies: 6
    Last Post: 08-22-2012, 03:24 AM
  5. select Subform record and go to record on form
    By pcool in forum Programming
    Replies: 6
    Last Post: 04-16-2012, 05:50 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