Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,205
    Why would you do this?
    Copy the table structure & its data to the new table. No need for an append query
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  2. #17
    drunyan0824 is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Jun 2022
    Posts
    82
    Quote Originally Posted by isladogs View Post
    Why would you do this?
    Copy the table structure & its data to the new table. No need for an append query
    Two reason. First I am pretty new to access so I am still trying to learn and figure out how access operates and how to create databases in general. So part of my reasoning was to learn how to do an append query and figure out where it could be used. Second, My understanding of how copy and paste work I would think that if there was a problem with the dependencies between tables in my database, that copying and pasting the tables would also duplicate the dependence issues between the tables. As I understand it, the append query takes just the data from one table and inserts the data into another table. I know that using an append query is probably over complicating the process, but it seems like using the append query would prevent the duplication of any dependences between tables.

    Like I said, I am new to access and am probably wrong on how to do most things in access.

  3. #18
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,425
    Could I create a new table called tblCableCategory that has the same structure as tblCategory and then run an append query to copy all of my data from tblCategory to tblCategory and avoid a dependence error?
    You could end up with records with different pk (autonumbers) than what you had before, making the problem far worse if there are records in other tables with related data that was tied to the old an's.

    Seems to me that introducing dependency failures won't be fixed by copying tables IF the dependency is in a query (including calculated query fields), control rowsource, calculated control, etc. because those things are "down stream" so to speak. They are looking for something that doesn't exist. I don't develop much anymore but when I was, sometimes I'd change something if it helped me or anyone continue with design but I'd use the documenter, export the output to Word then use Find to look for the old name. You pretty much have to output everything though.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #19
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,205
    As already stated, doing this with an append query is unnecessary for this purpose and, as Micron has explained, it may also cause problems as it is likely that autonumber values will not all be the same.
    There will be plenty of opportunities to learn about the different types of query such as INSERT (append) for other purposes.
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Looking for comprehensive Object Dependency utility
    By GraeagleBill in forum Access
    Replies: 2
    Last Post: 05-15-2019, 09:26 AM
  2. Need help to resolve - Error appears "Object Required"
    By awaiskazmi in forum Programming
    Replies: 4
    Last Post: 10-30-2017, 10:45 PM
  3. remove object dependency
    By Jen0dorf in forum Access
    Replies: 1
    Last Post: 11-03-2015, 08:33 AM
  4. Replies: 0
    Last Post: 02-20-2012, 04:57 PM
  5. Missing Dependency Question
    By usmcgrunt in forum Access
    Replies: 2
    Last Post: 09-07-2010, 11:55 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