+ Reply to Thread
Results 1 to 2 of 2

SQL query works in 2003 but not in 2007

  1. #1
    Registered User
    Join Date
    04-14-2013
    Location
    henderson, tennessee
    MS-Off Ver
    365
    Posts
    42

    SQL query works in 2003 but not in 2007

    I have a SQL query that runs perfectly in excel 2003 yet I can't get it to run in 2007. Returns 'Run-time error 1004 General ODBC error.' I found a sweet line of code to point out exactly where the error is happening and pastes the error in a cell and it tells me:
    [CODE]"[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'BoxPM_Statsdef_1'."[CODE]

    I am missing something but not sure what. Anyone have any thoughts?

  2. #2
    Registered User
    Join Date
    04-14-2013
    Location
    henderson, tennessee
    MS-Off Ver
    365
    Posts
    42

    Re: SQL query works in 2003 but not in 2007

    Ends up being a date formatting issue of all things. I knew the table was good because I could go straight into the sql db and look at it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Database Query macro works in Excel 2003 but fails in Excel 2007
    By NBVC in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-11-2012, 12:24 PM
  2. Vba for Pivot Table works in 2007 but not in 2003
    By clng in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-29-2010, 11:40 PM
  3. Excel 2007 : Module works in 2003 but not in 2007
    By familylink in forum Excel General
    Replies: 13
    Last Post: 07-16-2010, 04:56 AM
  4. UDF works in 2003, but fails in 2007
    By Puff_Adder in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-05-2010, 06:21 PM
  5. ATTN: Works wdb files to Excel 2003 converter query
    By SeeAll in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 07-10-2006, 03:29 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1