Wrox Programmer Forums
|
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 11th, 2004, 05:27 PM
Registered User
 
Join Date: Sep 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Access Db on Web

Hello all
I have a database that needs to be updated through a website. I was told ASP might help me. Will VBA for Access work in ASP? Can someone put an example up that builds a connection from a host website to a database on my computer and how I can run a simple update query? I am totally lost when it comes to Updating, Appending or connecting to Access from the web. Thanks for you help!

Ant

 
Old May 9th, 2005, 11:06 PM
Authorized User
 
Join Date: May 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here an example of connecting access db to asp.

Dim DB
Set DB=Server.CreateObject ("ADODB.Connection")
DB.Open ("PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE="+ Server.MapPath("quiz.mdb"))

Dim RS
Set RS=Server.CreateObject ("ADODB.Recordset")
RS.Open "SELECT * FROM ["&varData&"] ORDER BY ID ", DB

got it?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Access DB for web - when is it not a good idea rooroo Access 13 May 26th, 2007 04:06 PM
Access DB for web - when is it not a good idea rooroo Access ASP 2 November 21st, 2005 09:33 AM
Converting Access DB to Online DB eyal8r Access 5 December 6th, 2004 05:22 AM
access db to sql server db mikersantiago Classic ASP Basics 4 November 16th, 2004 03:33 AM
Synchronizing web db with our master db sunny25 Classic ASP Basics 0 October 17th, 2003 09:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.