Re: Access Query w/VBScript
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Mon, 13 Jun 2005 08:52:09 -0400
Bob Orta wrote:
> I tried each method in the replys, but none worked - various errors.
>
> Here is the code I used (using the last replys suggestion):
>
> <SCRIPT LANGUAGE="VBScript">
> <HEAD>
> <TITLE>Use Access Query as Source</TITLE>
> </HEAD>
> <BODY>
> <%
> Set cn = createobject("adodb.connection")
> 'cn.open "DRIVER={Microsoft Access Driver
> (*.mdb)};DBQ=C:\Bob\Personnel.mdb"
>
> cn.open "Provider=microsoft.jet.oledb.4.0;" & _
> "Data Source=C:=\Bob\Personnel.mdb"
Oh! I see why you made this mistake! There was a typo in my first reply:
"Data Source=c:=path\to\database.mdb"
should have been:
"Data Source=c:\path\to\database.mdb"
Sorry about that, chief ...
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
.
- Follow-Ups:
- Re: Access Query w/VBScript
- From: Bob
- Re: Access Query w/VBScript
- References:
- Re: Access Query w/VBScript
- From: Bob Barrows [MVP]
- Re: Access Query w/VBScript
- From: Bob Orta
- Re: Access Query w/VBScript
- Prev by Date: Re: [EXCEL & VBSCRIPT] How to insert a formula in a cell ?
- Next by Date: Re: [EXCEL & VBSCRIPT] How to insert a formula in a cell ?
- Previous by thread: Re: Access Query w/VBScript
- Next by thread: Re: Access Query w/VBScript
- Index(es):
Relevant Pages
|