+ Reply to Thread
Results 1 to 9 of 9

modifying database query with VBA

Hybrid View

  1. #1
    Registered User
    Join Date
    02-21-2005
    Posts
    8

    modifying database query with VBA

    I have a worksheet that retrieves a months worth of valid data out of an oracle database. This works great but i would like to be able to modify what month and year the query requests in the background so the user does not have to go through all those button clicks in the wizard.

    After looking through the help and searching here it seems like its possible, but i havent worked with excel's odbc before so i'm a bit new, i do know sql though.

    i already have a button that activates a macro to do other things in this worksheet, so i can fire a seperate macro from that as well.

    all i am interested in doing is modifying the sql and then refreshing the data with the new query.

    thanks,

    bsumner

  2. #2
    Registered User
    Join Date
    02-21-2005
    Posts
    8
    anybody have a clue?

  3. #3
    Registered User
    Join Date
    02-21-2005
    Posts
    8
    still need help.

  4. #4
    Registered User
    Join Date
    02-21-2005
    Posts
    8
    still need help.

  5. #5
    Forum Contributor
    Join Date
    12-04-2003
    Posts
    360
    post your sql.

    Prob best not to reply to your own posts as people will prob assume its been solved.

  6. #6
    Registered User
    Join Date
    02-21-2005
    Posts
    8
    sql isnt the issue, i need to know the excel vba syntax to get the query, syntax to set the query (if it is different), and syntax to refresh the query.

    just bumping my post as it goes a day without replies, which puts it way down on the 6 or 7th page.

    thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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