Results 1 to 12 of 12
  1. #1
    apetho17 is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Mar 2012
    Posts
    8

    Unhappy Subform Not showing new records created

    I just updated our database to Office 2010, Access 2007. In my main form, I have a subform linked to a table, linking ID to ID. But when I create new records in the subform table, the new records do not show up in the form view. If I close the Main form and open the table that it's linked too, I can see the records created but they aren't using the same ID as what record they were created in.



    I'm not a programmer - and I only have experience with this database when it comes to Access. We have had this database for 12 years and it has worked perfect in Office 2000/XP, but now that we have finally upgraded, we can't use this linked subform. In those 12 years, I have been able to fumble my way through updates and changes to this database. But I can't figure this one out.

    My main table is "Orders Main" and my subform is linking my "Tech Table". My tech table is showing notes from client phone calls. I have deleted the subform and tried to recreate it. I created a relationship between the Main table and the tech table linking ID to ID.

    What am I doing wrong!??? Help!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Can you provide db, or an extract of the relevant objects, for analysis. Make copy, remove confidential data, just need some dummy records for testing.
    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
    apetho17 is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Mar 2012
    Posts
    8
    i can't attach it - it's too large, even with it stripped out of almost all data and compacted/repaired and zipped.

  4. #4
    apetho17 is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Mar 2012
    Posts
    8
    you can download it here: client.windowstickers.biz username: access pw: help2012 - there is a copy of Office Pro 2010 Access File and Office 2000/XP Access File

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Sorry, can't figure out the url to that site. I don't know why I should need username/pw to download file. Usually just need url link to the file. That's how box.com works.
    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.

  6. #6
    apetho17 is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Mar 2012
    Posts
    8
    i'm not using box.com. the url is linked to our server. no http://www... just type in client.windowstickers.biz ... that's why the username/pw is required to log in and grab the file. Sorry this is my only method of transferring this file to you.

  7. #7
    apetho17 is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Mar 2012
    Posts
    8

  8. #8
    apetho17 is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Mar 2012
    Posts
    8
    I think if I just change the ID field in the tech table to a "number" instead of "auto-number" that that might fix my problem. What do you think? I'm sure you're laughing at the database setup! It's probably a programmer's nightmare or joke for that matter. The person who created it (not me)...was not very experienced as you can probably tell.

  9. #9
    apetho17 is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Mar 2012
    Posts
    8
    The above worked for me. I changed the ID field to a Number instead of Auto-Number and this fixed my issue. Maybe not the best solution - but it works and we haven't had any issues since. Thank you for looking.

  10. #10
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    That couldn't have been like that for 12 years! This is something new? So instead of ID as the unique record ID for Tech Table, it is the foreign key for ID from Order Main? Tech Table then doesn't have a unique ID which might be fine if never have need for this pk/fk link to another table. I notice Orders Table is same. Means these tables are lowest in the chain. Nothing needs a key from those tables.

    I do notice some tables don't have primary key defined, such as Order Main.

    Also, something I had not encountered before: Orders Table ID field is autonumber but there are duplicates in this field. Order Main and Orders Table have a link on their autonumber ID fields in the Relationships builder. I have never seen this before. I tested adding new record in Order Main and then a related record in Orders Table. I did it directly on tables. The new record in Order Main was ID 15934 but in Orders Table it shows 15936 was generated. They appeared to remain linked until I closed and reopened tables. The link was lost. I think there is a critical flaw here. Again, this could not have been in place for 12 years. Or else you have been working with very bad data. As with the Tech Table, Orders Table ID field should be number, not autonumber.
    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.

  11. #11
    apetho17 is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Mar 2012
    Posts
    8
    Everything was linked perfectly until we upgraded to Office Pro 2010. That's when the problems started and when the tables were not showing the right data as expected. However, since changing the ID in Tech Table to a Number instead of Auto Number, the records are following the right customer.

    Interesting, we haven't had an issue with the orders not following. Perhaps it is because in the properties, it's not indexed, so it allows duplicates? Not sure but it works..so I am not complaining.

    Thank you for your input! I appreciate you taking the time to look and help out!

  12. #12
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Well, my test of the Order Main and Orders Table linking failed. You should check on that some more.
    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.

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

Similar Threads

  1. Replies: 1
    Last Post: 03-02-2012, 10:24 AM
  2. Replies: 16
    Last Post: 02-13-2012, 03:32 PM
  3. Replies: 18
    Last Post: 01-27-2012, 12:53 PM
  4. Contact Details subform Showing ALL records
    By prouddaughter in forum Forms
    Replies: 4
    Last Post: 01-21-2012, 07:35 AM
  5. Replies: 2
    Last Post: 08-20-2009, 07:53 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