Home  Fees/Services  Access Examples  Programming Tutorials  Access Download  Articles  Search  Contact  Privacy  Links
  Microsoft Jet OLEDB Database Connection String
 Access ADO Jet Database Connection Example







Connect String to Access DSN

Connect String to OLEDB Provider for Jet

Database Connect String to Remote Database

ADO File-DSN Database Connection String

Access DSN-Less Connection String

SQL/Server ODBC Database Connection Method Example

OLE DB UDL Database Connection String Example

Connection Open Method String Example

Microsoft Office:
  MS Access 2003
  Access 2007
  Access 2010
  Access 2013


OLE DB Provider for Microsoft Jet Connection String Method

This examples show the method for the OLE DB Microsoft Access Jet.

Dim conn as ADODB.Connection
Dim rst as ADODB.Recordset
Dim sql as string

'---------------

Standard Access Security:



Since 2000 we have developed nearly 500 databases for clients throughout the world. See a sample of them at our recent clients page.

We also offer Microsoft SQL Server / Azure / Cloud database development through our programmer partnership with Jay McCormick and his team.


Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
                   "Data Source=\my_path\my_database.mdb;" & _
                   "User ID=userid;" & _
                   "Password=password;"

Access workgroup security - system database:
Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
                   "Data Source=\my_path\my_database.mdb;" & _
                   "Jet OLEDB:System Database=system.mdw;" & _
                   "userid","password"

userid = the userid you have identified in the database, or the default 'Admin' username.

password = the password you have setup in the database or "" for no password.

'--------------  here we use the connection

sql = "select sales_rep, dollars from sales_by_rep_chart"

Set rst = Server.CreateObject("ADODB.Recordset")
rst.Open sql, conn, 3, 3
Set Session("mysession") = rst
rst.movefirst
response.write rst!sales_rep

'--------------

Where mysession is any name for the session.

When done with the recordset don't forget to close it:

Conn.close
set conn=nothing

 











A Blue Claw Database Design Article:

Microsoft Access On The Internet
 





Blue Claw Database Design Downloadable Tutorial:
Make Dependent Combo Box Code MS Access  Tutorial Download  





A Blue Claw Software Design Template:

Interior Design Project Project Management
 




Contact Information

Copyright 2000-2017 Blue Claw Database Design