Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

vbscript + odbc

 
   Database Help (Home) -> Visual Basic RSS
Next:  Uploading a Picture  
Author Message
Franck

External


Since: Jun 02, 2004
Posts: 1



(Msg. 1) Posted: Wed Jun 02, 2004 3:26 am
Post subject: vbscript + odbc
Archived from groups: microsoft>public>vb>database (more info?)

I am interested in finding a method to use vbscriptto create an odbc
connection to an ACCESS.mdb file. (To replace Start/Control
Panel/ODBC/NEW...)

thanks

 >> Stay informed about: vbscript + odbc 
Back to top
Login to vote
Ivan Dormain

External


Since: Jun 15, 2004
Posts: 4



(Msg. 2) Posted: Tue Jun 15, 2004 10:55 am
Post subject: Re: vbscript + odbc [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hey


Make a rreference to the ADO library then:

Dim objCnn as New ADODB.Connection

objCnn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\NorthWind.mdb"
objCnn.Open()

Once you have established a connection, you can then create recordsets, etc
by passing
the connection object (objCnn) into the Recordsets Open Method.

Hope this helps.

Ivan

"Franck" wrote in message

> I am interested in finding a method to use vbscriptto create an odbc
> connection to an ACCESS.mdb file. (To replace Start/Control
> Panel/ODBC/NEW...)
>
> thanks
>
>

 >> Stay informed about: vbscript + odbc 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Using ODBC datas source on .Net Server - This may be a real simple question but I am new to the .Net environment and can not find it. I have a .Net server which has an ODBC connection to Oracle defined as a system DSN. I have written a database application that runs on my local machine just..

sql query returns in wrong format - Hi, Hope someone can help me with this. I have MS SQL 2000 database where i have Table "PriceList" and there a column "Pricemk" wich is data type "money". All data in this column is in form "10001,35". So why when...

arrays - is there a way to concatenate the contents of an array (looping through the array) and storing each item in a comma delimited string? Thanks!

DataReport PageBreak - Hi everyone, I would like to know how to force pagebreak in a datareport for example after 5 records printed. Thank you all

Possible Use of a Cursor - I have a complex query that I hope I can explain it well enough for everyone to understand. I have a table that contains information for work instructions. Contained in the table are "MACHINE_PROC" these are groupings of machining processes....
   Database Help (Home) -> Visual Basic All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]