Using an Access Macro to extract data from SQL database problem

Posted on 2007-10-11
Last Modified: 2012-05-05
Using an Access Macro to extract data from SQL database problem.  We are using techscheduler to run this macro at specific times.  Every couple days it fails and you have to re-link the tables and then re-run it.  Any ideas what could be causing this to have to re-link the tables.  I checked maintenance tasks.

Question by:mkurtzhals
    LVL 11

    Expert Comment

    Chances are its an issue with the SQL db. Is it getting rebooted?
    LVL 119

    Accepted Solution

    why not include a routine that checks the link before running the macro.
    if link is broken, relink using codes.
    LVL 2

    Author Comment

    sample code?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
    Introduction In my previous article ( I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
    Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
    With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now