+ Reply to Thread
Results 1 to 4 of 4

how can i used inputbox in a query using vba

  1. #1
    Forum Contributor
    Join Date
    03-01-2014
    Location
    Mysore
    MS-Off Ver
    Excel 2007
    Posts
    379

    how can i used inputbox in a query using vba

    this code creates additional columns in particular (fixed)tablename in the Mysql

    can i display input box to tell which table it should Add and ignore the duplicate columns

    please let me know

    Please Login or Register  to view this content.
    Last edited by baig123; 01-27-2015 at 07:49 AM. Reason: paragraph

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: how can i used inputbox in a query using vba

    Replace SQL line with
    Please Login or Register  to view this content.

    Ive just realised however that your SQL relates to altering a table structure rather than creating a new one, the logic is the same however in the Create Table SQL
    If someone has helped you then please add to their Reputation

  3. #3
    Forum Contributor
    Join Date
    03-01-2014
    Location
    Mysore
    MS-Off Ver
    Excel 2007
    Posts
    379

    Re: how can i used inputbox in a query using vba

    thanks its working.

    but it works only one time when i run macro

    next time if i run it wouldnt display input box

    another is that it will ask table name if it found any duplicate value

    i have 25 columns after if add any thing it will go from starting column

    please let ,me know
    Last edited by baig123; 01-28-2015 at 02:55 AM.

  4. #4
    Forum Contributor
    Join Date
    03-01-2014
    Location
    Mysore
    MS-Off Ver
    Excel 2007
    Posts
    379

    Re: how can i used inputbox in a query using vba

    just modified its working fine

    Thank you for u r help pjwhitfield

+ 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. Enter inputbox to sql query
    By wally1961 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-21-2013, 06:13 PM
  2. inputbox query
    By dulitul in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 08-08-2013, 04:49 PM
  3. [Macro] Excel Query Connection with Inputbox for changing filters
    By JohnGaltnl in forum Access Programming / VBA / Macros
    Replies: 0
    Last Post: 07-19-2011, 04:24 AM
  4. Inputbox button control + msgbox for empty inputbox
    By D_Rennie in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-30-2009, 12:39 PM
  5. InputBox Query
    By Noemi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-04-2006, 06:55 PM

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