Skip to search.
outlook-dev · Outlook Development

Group Information

? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

  Messages Help
Advanced
Outlook connect to DataBase without creating DSN   Message List  
Reply Message #8142 of 28429 |
Re: Outlook connect to DataBase without creating DSN

Here's an extremely helpful technique for automatically building
connect strings:

Create a file on your desktop called test.udl

Dbl-click it and you will see a dialog that lets you build a
connection to your database.

Build the connection and test it.

Select OK to close the dialog.

Now, open the file test.udl with Notepad and you will see a perfectly
formed connection string!

--- In outlook-dev@y..., "Smith, NathanX Y" <nathanx.y.smith@i...>
wrote:
>
> using ado...
>
> dim cn as connection
> set cn=new adodb.connection
>
> cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=<PathOfMDBFile>;"
>
>
> Nathan Smith
> C:602.502.3606
> T:480.552.3430
>
>
> -----Original Message-----
> From: OChavez@B... [mailto:OChavez@B...]
> Sent: Thursday, February 08, 2001 1:21 PM
> To: outlook-dev@y...
> Subject: RE: Outlook connect to DataBase without creating DSN
>
>
> I need work with Access 2000.
>
> Oscar Chavez Nicolau
>
>
>
> -----Mensaje original-----
> De: Smith, NathanX Y [mailto:nathanx.y.smith@i...]
> Enviado el: Thursday, February 08, 2001 12:48 PM
> Para: 'outlook-dev@y...'
> Asunto: RE: Outlook connect to DataBase without creating DSN
>
>
> what type of database are you using?
>
> Nathan Smith
> C:602.502.3606
> T:480.552.3430
>
>
> -----Original Message-----
> From: OChavez@B... [mailto:OChavez@B...]
> Sent: Thursday, February 08, 2001 7:43 AM
> To: outlook-dev@y...
> Subject: Outlook connect to DataBase without creating DSN
>
>
> How I can connect from outlook to a database without creating a DSN
> in each it computer????. This due to the quantity of users (600).
>
>
> Dim strUser
> Dim strPass
> Mypromt="dbDriverCompleteRequired"
> Myconn="ODBC;DSN=Proy" 'How I can define the access in this
> step
> strUser = ""
> strPass = ""
> Dim dbUseODBC
> Set designada = Item.GetInspector.ModifiedFormPages
> ("P.2").controls("design")
> dbUseODBC = 1
> dbOpenSnapshot = 4
> Set dbe = Item.Application.CreateObject("DAO.dbEngine.35")
> Set wrkODBC = dbe.CreateWorkspace("ODBCWorkspace", strUser,
> strPass , dbUseODBC)
> dbe.Workspaces.Append wrkODBC
> Set conDB = wrkODBC.OpenConnection("Connection1", MyPrompt, ,
> MyConn)'How I can define the access in this step
> strSQL = "Select"
> strSQL = strSQL & "from design;"
> Set Punterodesignada = conDB.OpenRecordset(strSQL,
> dbOpenSnapshot)
>
> Oscar Chávez Nicolau
>
>
>
>
> --------------------------------------------------------------------
<e|-
> Manage your outlook-dev list subscription by sending a blank
message to the
> appropriate address:
>
> Unsubscribe: mailto:outlook-dev-unsubscribe@y...
> Switch to web: mailto:outlook-dev-nomail@y...
> Switch to digest: mailto:outlook-dev-digest@y...
> Switch to single messages: mailto:outlook-dev-normal@y...
>
> Post or download Outlook VBA and other samples at
> http://groups.yahoo.com/group/outlook-dev/files
>
> --------------------------------------------------------------------
|e>-




Thu Feb 8, 2001 11:52 pm

bfenske@...
Send Email Send Email

Message #8142 of 28429 |
Expand Messages Author Sort by Date

How I can connect from outlook to a database without creating a DSN in each it computer????. This due to the quantity of users (600). Dim strUser Dim strPass ...
OChavez@... Send Email Feb 8, 2001
2:44 pm

I use the following: set con = Application.CreateObject("ADODB.Connection") set rst = Application.CreateObject("ADODB.Recordset") con.Open...
Wayne, Ken A
kawayne@... Send Email
Feb 8, 2001
2:59 pm

what type of database are you using? Nathan Smith C:602.502.3606 T:480.552.3430 ... From: OChavez@... [mailto:OChavez@...] Sent:...
Smith, NathanX Y
nathanx.y.smith@... Send Email
Feb 8, 2001
4:48 pm

I need work with Access 2000. Oscar Chavez Nicolau ... De: Smith, NathanX Y [mailto:nathanx.y.smith@...] Enviado el: Thursday, February 08, 2001 12:48 PM...
OChavez@... Send Email Feb 8, 2001
8:21 pm

using ado... dim cn as connection set cn=new adodb.connection cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=<PathOfMDBFile>;" Nathan Smith ...
Smith, NathanX Y
nathanx.y.smith@... Send Email
Feb 8, 2001
9:53 pm

Here's an extremely helpful technique for automatically building connect strings: Create a file on your desktop called test.udl Dbl-click it and you will see a...
bfenske@... Send Email Feb 8, 2001
11:52 pm

Consider using a component in MTS instead. Then the component in the MTS connects to the db. You dont have to worry about a DSN and on any of your computers. ...
Snorre Meland
snorre.meland@... Send Email
Feb 13, 2001
7:43 am
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help