Results 1 to 2 of 2
  1. #1
    RandV is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Mar 2013
    Posts
    12

    How to fetch an ODBC table into DAO recordset?

    I should be able to get this but my heads a little frazzled with a cold right now. I'm doing some work in on SQL database in a roundabout way because I couldn't set an ODBC link for a few tables. Rather than link the SQL table into access dump my data into a temp access table, I need to link the SQL table and dump it into a temp linked SQL table.

    SQL Passthrough qry 1 - DROP TABLE TEMP; (if exists)
    SQL Passthrough qry 2 - SELECT (...) INTO TEMP FROM (...);
    SQL Passthrough qry 3 - SELECT * FROM TEMP;
    SQL Passthrough qry 4 - INSERT INTO LIVE FROM TEMP;



    I need to pull step 3 into into a DAO Recordset or QueryDef to do some row by row updates, but can't quite seem to get it. Any idea's what would work best?

  2. #2
    RandV is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Mar 2013
    Posts
    12
    Never mind, I was able to work it out... now how do you set a thread as solved?
    Last edited by RandV; 12-02-2014 at 02:20 AM.

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

Similar Threads

  1. Using DLOOKUP to fetch data from table
    By rd.prasanna in forum Access
    Replies: 4
    Last Post: 10-29-2013, 11:23 AM
  2. Query to fetch a rating based on another table
    By brianeveretthoffman in forum Queries
    Replies: 1
    Last Post: 11-13-2012, 12:30 PM
  3. How to fetch Column names of a table
    By deepanadhi in forum Queries
    Replies: 21
    Last Post: 06-04-2012, 06:17 PM
  4. How to fetch latest records from table
    By India62 in forum Access
    Replies: 13
    Last Post: 05-19-2011, 11:43 PM
  5. Need Query to fetch last row in a table
    By gunapriyan in forum Queries
    Replies: 10
    Last Post: 02-20-2010, 12:46 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