Novice question

access United States
  • 19 years ago

    Alright, I'm really a beginner.  I can program with databases in VB, but I have no clue how to do so over the internet or what I would even need to learn to do so.  Could someone help me out?  All I need to know is what functions, etc. I should be looking at.  I wanted to locate an Access database on the web and have the VB program pull a few records out in the begining and then save them at the end.  Thanks.


    -JD

  • 18 years ago

    You may want to try connecting to the database through ADO.
    This is how I connect to an Access DB through an ASP page:


    Function DBConnect(strDBName)
     Set DBConnect = Server.CreateObject("ADODB.Connection")
     path = Server.MapPath("/") + "\relative_path\" & strDBName
     DBConnect.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & path
    End Function


    Set ConnSQL = DBConnect("db_name.mdb")



    It may be similar through your VB program.

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“C++: an octopus made by nailing extra legs onto a dog.” - Steve Taylor