+ Reply to Thread
Results 1 to 2 of 2

Cannot get the SQL code to work inside VBA code

  1. #1
    Registered User
    Join Date
    02-01-2014
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    7

    Cannot get the SQL code to work inside VBA code

    figured out I can do a SELECT with DoCMD.RUNSQL, but need to use SELECT INTO
    Last edited by eastgoddes; 02-16-2014 at 12:59 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,897

    Re: Cannot get the SQL code to work inside VBA code

    Often, when I have coding issues relative to SQL and VBA, I create a query using the QBE and then copy the SQL statement into the VBA.

    Additionally, somewhere, I found this neat little utility that converts SQL to VBA. Import this form into any Access DB and use it.
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. Replies: 9
    Last Post: 08-30-2013, 07:49 AM
  2. Replies: 1
    Last Post: 08-14-2013, 12:01 PM
  3. Code to work at the same time as other code???
    By D_N_L in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-15-2012, 12:43 PM
  4. Running excel vba code from inside access vba code
    By Lanox in forum Access Programming / VBA / Macros
    Replies: 1
    Last Post: 08-31-2011, 09:09 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