+ Reply to Thread
Results 1 to 3 of 3

Seeing a SQL select string in locals window

  1. #1
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    992

    Seeing a SQL select string in locals window

    I have a long string which is used to query an SQL database. I suspect there is a typo which is stopping it working. The locals window shows the start of the string but I need to see it all.
    Is this possible?
    John

  2. #2
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Seeing a SQL select string in locals window

    Ctrl+G to get to the immediate window then something like this:

    Please Login or Register  to view this content.
    Replace sqlString with your variable so save it to file. Alternatively, Ctrl+G and just:

    Please Login or Register  to view this content.
    WBD
    Office 365 on Windows 11, looking for rep!

  3. #3
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Seeing a SQL select string in locals window

    WBD answered nicely already, and that works well. Personally I usually dump my sql string into a cell for debugging purposes, and then use the formula bar (which I drag down for additional height) to evaluate the string.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

+ 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] Where has my Locals window gone? (Excel 2010)
    By j_Southern in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-14-2018, 10:16 AM
  2. [SOLVED] Excel Crashes when using locals window to view custom-defined class
    By joe31623 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-11-2016, 04:23 PM
  3. Range not appearing correctly in Locals
    By bishoposiris in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-22-2014, 03:25 PM
  4. control objects void of members in locals window
    By vientito in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-04-2013, 05:11 AM
  5. Why dont i see anything in the locals window or immediat window
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-14-2011, 10:01 AM
  6. 'Exporting' contents of Locals Window
    By mynci in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-27-2008, 05:15 AM
  7. [SOLVED] VBA Code runtime error only after opening Locals window
    By keeena in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-22-2006, 02:35 PM

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