+ Reply to Thread
Results 1 to 4 of 4

Need a reference for troubleshooting sql inside vba

  1. #1
    Forum Contributor
    Join Date
    03-08-2011
    Location
    Lubbock, TX, USA
    MS-Off Ver
    MS OFFICE 365 EXCEL, OUTLOOK, WORD, POWERPOINT
    Posts
    194

    Need a reference for troubleshooting sql inside vba

    Folks, when I jump off the deep end I should wear a life jacket. I have an SQL (MS SQL SERVER I THINK) that was provided by the vendor at my request. Normally all I have had to do was provide the connection string and wrap the code as shown below. But for some reason this comes up with a Scalar Error. I screenshot the tip shown in the debug window. That allowed me to find the line of SQL (which I put **** next to in the code and I can't find anything wrong. I would love to learn how to troubleshoot this. All advice appreciated. Thanks for reading.

    Please Login or Register  to view this content.
    Capture.PNG

  2. #2
    Forum Contributor
    Join Date
    03-08-2011
    Location
    Lubbock, TX, USA
    MS-Off Ver
    MS OFFICE 365 EXCEL, OUTLOOK, WORD, POWERPOINT
    Posts
    194

    Re: Need a reference for troubleshooting sql inside vba

    I'm scared now. Normally this forum is blazing fast. This must be tougher than I thought.
    Anyone have an idea of another forum or resource that this question/discussion would be appropriate in?
    Thanks for reading.

  3. #3
    Registered User
    Join Date
    09-02-2013
    Location
    wellington, new zealand
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Need a reference for troubleshooting sql inside vba

    The line before the highlighted line is SQL = ""
    you could try removing that as it would have the effect of deleting all the SQL, to this point, and restarting from the highlighted line.

  4. #4
    Registered User
    Join Date
    09-02-2013
    Location
    wellington, new zealand
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Need a reference for troubleshooting sql inside vba

    After your initial urgency, there seems to be a lack of activity on this thread.
    Perhaps you could update it so I don't need to keep checking back here.

+ 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. MISSING REFERENCE: Troubleshooting
    By swade730 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-10-2016, 07:34 PM
  2. [SOLVED] Calling string inside cell reference to reference another sheet.
    By {=OR(value=array)} in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-26-2013, 04:45 PM
  3. How to Reference worksheets inside a workbook
    By mowermanone in forum Excel General
    Replies: 2
    Last Post: 07-03-2013, 02:11 PM
  4. [SOLVED] Circular Reference Troubleshooting
    By thesonofdarwin in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-28-2013, 01:32 AM
  5. Cell Reference Inside DDE Link
    By Excel-sior in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-21-2009, 02:01 PM
  6. DDE syntax (cell reference inside)
    By fbrito in forum Excel General
    Replies: 0
    Last Post: 09-28-2007, 04:47 PM
  7. Replace reference inside formula
    By malik641 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-20-2005, 11:23 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