Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Executing MS-Acess queries from a text file

Executing MS-Acess queries from a text file

Scheduled Pinned Locked Moved Visual Basic
databasehelpquestiondata-structures
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sarah_chandran
    wrote on last edited by
    #1

    I have a set of ms-access queries in .txt file. How can i execute those queries from a vb program? -- modified at 4:11 Friday 11th November, 2005 I have got the code to execute the query from the text file but if a query spreads across more than one line i am getting a problem because i am using an array that stores each line in the database and executes it. can u suggest how i can use a delimiter to indicate the end of a query or an alternative. Another problem is that i want to execute queries from many txt files. Right now i have hard-coded the path of one of the text files. I want to access each query sequentially( the user can't select) and i am working in vb 6 so kindly help Please help. Thanks in advance -- modified at 6:09 Friday 11th November, 2005

    D 1 Reply Last reply
    0
    • S sarah_chandran

      I have a set of ms-access queries in .txt file. How can i execute those queries from a vb program? -- modified at 4:11 Friday 11th November, 2005 I have got the code to execute the query from the text file but if a query spreads across more than one line i am getting a problem because i am using an array that stores each line in the database and executes it. can u suggest how i can use a delimiter to indicate the end of a query or an alternative. Another problem is that i want to execute queries from many txt files. Right now i have hard-coded the path of one of the text files. I want to access each query sequentially( the user can't select) and i am working in vb 6 so kindly help Please help. Thanks in advance -- modified at 6:09 Friday 11th November, 2005

      D Offline
      D Offline
      DA_Loring
      wrote on last edited by
      #2

      VB6 Is this a list of queries to be accessed sequentially, or do you need to select? Basically read the query from the file into a string, or string array depending on what you need to do, and then execute the appropriate string. If you need more help I can assist if it is VB6

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups