Results 1 to 4 of 4
  1. #1
    RayMilhon is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,071

    Linked Tables

    I have a database with a number of linked tables. We have an issue with the SQL Server Database that kills response time. (It's a corporate Database and we have zero control or input as I've complained numerous times concerning response times from our queries.) What I've done is created a couple of queries that takes the 4 corporate tables we use and copy them locally based on Criteria pre-determined to fit our biggest need. I've set up an autoexec macro to run those 4 queries at 6:00 AM so the data is ready when I get in at 8:00 AM. I've created a function in VBA to refresh the links for all of those tables. Plus a couple of others in other databases just to speed up our queries. The problem is that as soon as the accdb file (Access 2010) opens it prompts for the SQL Server Login. The first step in the macro was supposed to run the function. So to test it I put the first step in the macro to display a message box. I still get prompted for the database password before the message box appears. Am I out of luck here? how do I get the autoexec macro to run first?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    youd have to remove all the sql tables, then relink them all in WITH password saved in the ODBC link.
    then the macro will run without prompting.

  3. #3
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    I've complained numerous times concerning response times from our queries
    are your queries optimised for sql server? no use of domain or udf functions, only return small recordsets, etc

  4. #4
    RayMilhon is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,071
    Ranman I will do that today thanks.

    Ajax the database was designed by Finance at corporate and they're extremely protective over it. I've never even glimpsed the actual data structure of the tables but looking at the views and running reports over the last year I can make some educated guesses. First thing I've noticed that depending on the department I'm designing the report for the same person can have multiple primary address locations. This design was created to replace 6 different Commercial Databases. I've never been able to see the tables but I believe they just imported the six without merging any data. Since it looks like they didn't even meet the first level of normalization. I only have access to the views and only to read data. I've optimized what I can but I'm severely handicapped for this database.

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

Similar Threads

  1. Replies: 6
    Last Post: 04-18-2018, 06:56 AM
  2. Replies: 17
    Last Post: 04-09-2018, 04:39 PM
  3. Replies: 1
    Last Post: 02-07-2016, 02:41 PM
  4. Replies: 4
    Last Post: 11-22-2013, 11:20 AM
  5. Replies: 5
    Last Post: 02-02-2012, 06:42 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