Results 1 to 10 of 10
  1. #1
    Abacus1234 is offline Competent Performer
    Windows 8 Access 2013 32bit
    Join Date
    Nov 2011
    Posts
    212

    Sending objects in a database for purpsoe of updating another database

    If I package a number of objects in a database, with the intention of sending them to another site to be used to update a remote data base. Some queries default to expr. In these cases we also package the tables in the database, and the queries remain true. It would be of interest to know why this happens in some cases but not in others. And is there anyway to stop it happening? Thanks for any insight.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    I wouldn't expect a query to do that unless it's opened in design view and the table isn't there. Are you saying it does? If so, one potential culprit is Name Autocorrect, which has been called Name Autocorrupt. Try turning it off if it's on.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Abacus1234 is offline Competent Performer
    Windows 8 Access 2013 32bit
    Join Date
    Nov 2011
    Posts
    212
    Thanks, I will definitely check that out.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    No problem. Post back with results; I'm curious what can cause this other than opening the query.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    Abacus1234 is offline Competent Performer
    Windows 8 Access 2013 32bit
    Join Date
    Nov 2011
    Posts
    212
    We were wondering if you thought that doing a Repair and Compact on what we call the "Feeder Database" could also cause anything like that to happen.

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    That's possible. Looking at:

    http://rogersaccessblog.blogspot.com...my-access.html

    I note:

    Thirdly, it rebuilds the table statistics which are used by the query optimizer to optimize queries. It also forces a re-compile of your saved and embedded queries based on these new stastics.
    It could be that the re-compile sees that the table doesn't exist and "fixes" the query for you.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  7. #7
    Abacus1234 is offline Competent Performer
    Windows 8 Access 2013 32bit
    Join Date
    Nov 2011
    Posts
    212
    Thanks, that's really helpful. Will do some testing and tell you if we find that the Repair and Compact or the Auto Correct are "fixing some queries for us".

  8. #8
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    If so, it's a "feature", not a "bug".
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  9. #9
    Abacus1234 is offline Competent Performer
    Windows 8 Access 2013 32bit
    Join Date
    Nov 2011
    Posts
    212
    I did some limited testing.

    I took 2 queries, one of which had ended up with expr in each field, and one that had remained unaffected.

    I pulled them into a "feeder database", did NOT repair and compact, then used them to update another database, they both remained unaffected without expr finding it way in.

    I pulled them into another "feeder database, which I did REPAIR and COMPACT, then used them to update another database, One was affected and one was not.

    The one that was affected and ended up with expr in all columns, looked only at one table.
    The one that was NOT affected, looked at the same table plus 2 other tables.

    So it seems that Access slightly over-reached to be helpful with Repair and Compact... thanks for the lead to this aspect of the problem, now we know what not to do.........

    I'm flying south for a few days, so the testing will be halted until I return.

  10. #10
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    No problem, though you're the one that asked about it, so you get the credit.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Emailing Database Objects
    By Jessica240 in forum Macros
    Replies: 3
    Last Post: 02-19-2015, 04:53 PM
  2. Sharing Objects with a secondary database.
    By jerepois in forum Access
    Replies: 3
    Last Post: 08-18-2014, 01:56 PM
  3. Replies: 43
    Last Post: 03-27-2014, 01:51 AM
  4. Get objects selected in the database window
    By jptros in forum Programming
    Replies: 2
    Last Post: 08-02-2012, 04:39 PM
  5. Replies: 5
    Last Post: 05-17-2012, 06:23 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