Results 1 to 8 of 8
  1. #1
    PinkDuster's Avatar
    PinkDuster is offline Advanced Beginner
    Windows 7 64bit Access 2013 32bit
    Join Date
    Aug 2017
    Location
    Cleveland area
    Posts
    65

    Synchornized Updates to Multiple Forms and Tables After Data Entry

    Hello All,

    I think I am missing a fundamental command needed when updating records in auxiliary tables which link to the main tables used in my Customers and Orders forms, and the Shipping Addresses subform. After entering shipping address data or selecting a shipping address, and attempting to save the Order record there are two errors:

    Click image for larger version. 

Name:	tblError.png 
Views:	33 
Size:	59.2 KB 
ID:	36744Click image for larger version. 

Name:	tblError2.png 
Views:	32 
Size:	51.5 KB 
ID:	36745

    When I force a close and check the Orders, I can see that a record was added, however something isn't right because the Invoice numbering sequence is not updating (shows "00000" in below image).

    Click image for larger version. 

Name:	tblError3.png 
Views:	30 
Size:	27.3 KB 
ID:	36746

    Any guidance is appreciated.

    Thank you,

  2. #2
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,417
    I don't get those errors in the DB that I provided in your previous thread. I can see changes to the form in the the above post, so the db has changed. You'll need to post your latest version.

  3. #3
    PinkDuster's Avatar
    PinkDuster is offline Advanced Beginner
    Windows 7 64bit Access 2013 32bit
    Join Date
    Aug 2017
    Location
    Cleveland area
    Posts
    65
    Hello davegri, yes I did make a couple of changes since then (when it worked). I added a button to copy data from tblCustomers to tblShippingAddresses, added a feature to automatically increment an invoice number (not using an autonumber field), and revised a report tied to Orders. Attached is current db. Thank you,v4.3f.zip

  4. #4
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,417
    v4.3f -davegri-v03.zip
    Have a look. Got invoice number increments working.
    The combobox on the main form for shipping address is now synchronized with the shipping address subform tab.

  5. #5
    PinkDuster's Avatar
    PinkDuster is offline Advanced Beginner
    Windows 7 64bit Access 2013 32bit
    Join Date
    Aug 2017
    Location
    Cleveland area
    Posts
    65
    Quote Originally Posted by davegri View Post
    v4.3f -davegri-v03.zip
    Have a look. Got invoice number increments working.
    The combobox on the main form for shipping address is now synchronized with the shipping address subform tab.
    Hello davegri, yes, thank you they are working now, but I am still getting table error messages when I try to capture an order. Am I missing some kind of Refresh or Requery statement to include prior to saving the order in order to synchronize tblOrders?

    I added a few new customers and then added shipping addresses and cc info in the subforms on the order page to test out, since I think the previously used ones are not working correctly from using the Copy button. They update perfectly, as you fixed, but when I hit the Complete Order button, I get an error message. The action must still work because if I close the database and re-open, then I can see the transaction in the transaction table of the Customer form...although I can no longer view the actual transaction by way of the Review Details of Previous Orders button.v4.3f -davegri-v03 - Copy.zip

  6. #6
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    PMFJI, but I see some issues...

    tblOrder.fkPmtTerms is Integer but linked to tblPmtTerms.ID which is an Autonumber/Long Integer.


    In tblOrder, "Sequence" is a reserved word.
    In tblProduct, "Description" is a reserved word.

    tblProduct.ProductID (PK) is a text type field. Not a real good idea.

    tblShippingAddress has a compound PK.
    Only ShipAddID should be the PK field and you should set a compound Index on ShipAddID and fkCustID.


    See Microsoft Access Tables: Primary Key Tips and Techniques http://www.fmsinc.com/free/newtips/primarykey.asp



    "ID" is a terrible field name...


    In "tblOrderDetail", the look up fields should be removed.
    See The Evils of Lookup Fields in Tables http://access.mvps.org/access/lookupfields.htm

  7. #7
    PinkDuster's Avatar
    PinkDuster is offline Advanced Beginner
    Windows 7 64bit Access 2013 32bit
    Join Date
    Aug 2017
    Location
    Cleveland area
    Posts
    65
    Yikes! Thank you, I didn't know that those were reserved words, I will need to make changes. I appreciate your review and suggestions. I wasn't sure how to use compound identifications, and am trying to get rid of the Lookup fields.

  8. #8
    orange's Avatar
    orange is online now Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726

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

Similar Threads

  1. Data entry form for multiple tables
    By Nowbodys in forum Access
    Replies: 1
    Last Post: 06-20-2016, 04:33 AM
  2. Data entry into multiple tables same field name
    By mpaulbattle in forum Access
    Replies: 6
    Last Post: 05-11-2016, 06:53 AM
  3. Replies: 5
    Last Post: 08-12-2013, 12:53 AM
  4. Replies: 1
    Last Post: 11-19-2011, 10:36 PM
  5. Entry of Large Data Sets into multiple tables
    By bcouzens in forum Access
    Replies: 8
    Last Post: 05-26-2011, 02:22 PM

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