PC Review


Reply
Thread Tools Rate Thread

connection string

 
 
Chris Nebinger
Guest
Posts: n/a
 
      17th Jun 2004
CurrentProject.Connection is the connection string you
need.


Chris Nebinger


>-----Original Message-----
>i usually use ADO in my visual basic when i make a

program with a database in access. the problem now is:
>
>i am now programming in access without using VB that is

purely ACCESS. what connectionString should i used? im
gonna use it for my module.
>
>.
>

 
Reply With Quote
 
 
 
 
Dirk Goldgar
Guest
Posts: n/a
 
      17th Jun 2004
"Chris Nebinger" <(E-Mail Removed)> wrote in message
news:1e06a01c4547b$f337af80$(E-Mail Removed)
> CurrentProject.Connection is the connection string you
> need.


Unless I'm confused, CurrentProject.Connection actually returns the
Connection *object*, not the connection string itself. Usually, that's
what you want anyway. If you really want the connection string, you
would get CurrentProject.Connection.ConnectionString .

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


 
Reply With Quote
 
Chris Nebinger
Guest
Posts: n/a
 
      17th Jun 2004
The default property of the Connection object is the
ConnectionString. So, I just use the
CurrentProject.Connection.

Debug.Print CurrentProject.Connection



Chris Nebinger


>-----Original Message-----
>"Chris Nebinger" <(E-Mail Removed)>

wrote in message
>news:1e06a01c4547b$f337af80$(E-Mail Removed)
>> CurrentProject.Connection is the connection string you
>> need.

>
>Unless I'm confused, CurrentProject.Connection actually

returns the
>Connection *object*, not the connection string itself.

Usually, that's
>what you want anyway. If you really want the connection

string, you
>would get CurrentProject.Connection.ConnectionString .
>
>--
>Dirk Goldgar, MS Access MVP
>www.datagnostics.com
>
>(please reply to the newsgroup)
>
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create a connection object (sql/oledb/odbc) based on connection method/string. Hetal Microsoft VB .NET 2 30th Apr 2007 05:55 PM
Query String or Connection String with Regex jwgoerlich@gmail.com Microsoft C# .NET 3 11th Jan 2007 09:55 AM
Connection String question - accessing one string throughout solut =?Utf-8?B?Z2FyeSBnLg==?= Microsoft Dot NET 2 26th Apr 2006 06:48 PM
Connection String object Convert to String Variable Type =?Utf-8?B?TWlrZSBNb29yZQ==?= Microsoft ASP .NET 2 26th Oct 2004 03:43 PM
connection string exception : Format of the initialization string does not conform to specification starting at index 0 Gaurav Microsoft ASP .NET 0 7th Nov 2003 10:24 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:44 AM.