Results 1 to 9 of 9
  1. #1
    Anil Bagga is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Apr 2020
    Posts
    69

    Issues in Records after append


    I created a form and tested it by creating new data. It was working fine. See TestDB enclosed

    When i appended the data from Excel one field does not capture the data from the table, all others do. I tried to delete and recreate the field in the form. No result. The field name is DebtorCode

    Also the new records are created with a very different ID which is 5 digits. I experience this in my other forms also from where I have copied these tables and Form

    Look forward to some helpTest18May.zip

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    you didn't provide the excel record to paste.

  3. #3
    Anil Bagga is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Apr 2020
    Posts
    69
    File enclosed. Thanks Raman for the response
    Attached Files Attached Files

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    Shouldn't debtorCode have its own table,so users can pick from?

  5. #5
    Anil Bagga is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Apr 2020
    Posts
    69
    Mr Raman. Each customer can be either a debtor and/or a consigne and / or an end customer for specific orders. Hence the concept to create a database of addresses with flags in one table and relationships in the other.

    Wonder why only the debtor code is not copied but all the others are, when we import from Excel

  6. #6
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114
    You just need to change the bound column of the DebtorCode combo from 4 to 1.

    Cheers,
    Attached Files Attached Files
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  7. #7
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Hmmmmm........

    Why does the combo box "EndCustCode" have a column count of 14 when the row source query only has 5 columns???

  8. #8
    Anil Bagga is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Apr 2020
    Posts
    69
    Thats it. Thanks. That did the trick

    Any clue why new records suddenly begin with a new series. Fo example last record is 192 and new record added is 30431 - 5 digits. I did the following to reset the number series
    Removed relationships of the table
    delinked primary key on the ID (autonumber)
    deleted the field
    added a new field ID
    reallocated primary key to ID

  9. #9
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114
    That is a well known issue with autonumbers, they are known to skip and leave gaps from time to time, but, if used properly, it shouldn't affect their usage (to ensure uniqueness for primary keys). To reset them usually you need to remove all the records following the gap, run a Compact and Repair and re-add the records, the sequencing should start from the previous highest number.

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

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

Similar Threads

  1. Append Query Issues
    By Humreid in forum Access
    Replies: 5
    Last Post: 03-18-2020, 12:40 PM
  2. Replies: 19
    Last Post: 10-03-2017, 09:10 AM
  3. Access can't append all the records in the append query
    By fluffyvampirekitten in forum Access
    Replies: 2
    Last Post: 08-27-2015, 01:53 AM
  4. Adding New Records Issues
    By Lin13 in forum Forms
    Replies: 5
    Last Post: 04-24-2013, 12:11 PM
  5. Replies: 1
    Last Post: 03-23-2010, 04:01 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