Connecting Tech Pros Worldwide Help | Site Map

Need help with connection string in OpenDatabase

  #1  
Old November 13th, 2005, 03:04 PM
Jozef
Guest
 
Posts: n/a
Hello,

I have a database that I have passworded. When I try to use OpenDatabase
with the Connect parameter filled in, I keep getting "Not a valid password",
even if I use the actual connect string from one of the tables. I have no
other security on the database, just a single password.

This is what I have;

'----Start Code ----
Dim db as database
Dim dWs as workspace

Set dWs= CreateWorkspace("", "Admin", "")
Set db = dWs.OpenDatabase(strPathFile, , , "MS Access;pwd=MyPassword")
'----End Code ----

Any ideas what's up?

Thanks!


  #2  
Old November 13th, 2005, 03:04 PM
Tom van Stiphout
Guest
 
Posts: n/a

re: Need help with connection string in OpenDatabase


On Tue, 04 Oct 2005 02:41:47 GMT, "Jozef" <me@you.com> wrote:

Connectionstrings are all here:
www.connectionstrings.com/

-Tom.

[color=blue]
>Hello,
>
>I have a database that I have passworded. When I try to use OpenDatabase
>with the Connect parameter filled in, I keep getting "Not a valid password",
>even if I use the actual connect string from one of the tables. I have no
>other security on the database, just a single password.
>
>This is what I have;
>
>'----Start Code ----
>Dim db as database
>Dim dWs as workspace
>
> Set dWs= CreateWorkspace("", "Admin", "")
>Set db = dWs.OpenDatabase(strPathFile, , , "MS Access;pwd=MyPassword")
>'----End Code ----
>
>Any ideas what's up?
>
>Thanks!
>[/color]

  #3  
Old November 13th, 2005, 03:04 PM
Jozef
Guest
 
Posts: n/a

re: Need help with connection string in OpenDatabase


Thanks Tom, I had already run the gammut of connection strings which all
gave me the same error.

"Tom van Stiphout" <no.spam.tom7744@cox.net> wrote in message
news:8lt3k1tnjbeuij84314f9blgbtcigqdogj@4ax.com...[color=blue]
> On Tue, 04 Oct 2005 02:41:47 GMT, "Jozef" <me@you.com> wrote:
>
> Connectionstrings are all here:
> www.connectionstrings.com/
>
> -Tom.
>
>[color=green]
>>Hello,
>>
>>I have a database that I have passworded. When I try to use OpenDatabase
>>with the Connect parameter filled in, I keep getting "Not a valid
>>password",
>>even if I use the actual connect string from one of the tables. I have no
>>other security on the database, just a single password.
>>
>>This is what I have;
>>
>>'----Start Code ----
>>Dim db as database
>>Dim dWs as workspace
>>
>> Set dWs= CreateWorkspace("", "Admin", "")
>>Set db = dWs.OpenDatabase(strPathFile, , , "MS Access;pwd=MyPassword")
>>'----End Code ----
>>
>>Any ideas what's up?
>>
>>Thanks!
>>[/color]
>[/color]


Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with sockets/winsock programming Valleriani answers 0 March 16th, 2006 01:48 PM
Need help with a VB.NET error ... please help! Details within D P answers 8 November 20th, 2005 07:35 PM
Linking external table with ODBC using code kai answers 2 November 13th, 2005 05:26 AM
Connecting to a DataBase like i did in VB 6 Chris answers 9 July 21st, 2005 05:03 PM