+ Reply to Thread
Results 1 to 2 of 2

SQL query that won't work in VBA

  1. #1
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    SQL query that won't work in VBA

    I am having a very strange issue where a SQL query of mine is not working. I am using SQL Server database and the issue is that the query works fine in management studio ,but when using it in code it does not.

    This is not going to help any, but I will post the code,

    Please Login or Register  to view this content.
    Funny thing is, if I take out the where clause it works in code,
    Please Login or Register  to view this content.
    I know my code is sound, but Anyone have an issue like this?
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

  2. #2
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: SQL query that won't work in VBA

    Nver mind, figured it out, it had to do with regional settings.

+ 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. [SOLVED] Problem getting web query onto work sheet
    By semajjames in forum Excel General
    Replies: 10
    Last Post: 10-08-2015, 02:42 PM
  2. [SOLVED] Why won't this SQL SELECT query work?
    By mc84excel in forum Access Tables & Databases
    Replies: 3
    Last Post: 12-08-2014, 01:44 AM
  3. MS Excel Query Won't Work
    By SOUT in forum Excel General
    Replies: 0
    Last Post: 06-07-2012, 04:08 PM
  4. Web Data Pull (Web Query Does Not Work)
    By winstontj in forum Excel General
    Replies: 0
    Last Post: 09-08-2009, 06:08 PM
  5. web query on EXCEL does not work. Why?
    By jimf in forum Excel General
    Replies: 1
    Last Post: 01-04-2006, 01:10 AM
  6. web query doesn't work
    By Brian Allen in forum Excel General
    Replies: 0
    Last Post: 11-17-2005, 07:55 AM
  7. [SOLVED] Access query does not work in Excel
    By Ake in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-05-2005, 09:05 AM

Tags for this Thread

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