Re: DAO 3.51

Tech-Archive recommends: Speed Up your PC by fixing your registry



Hi

Not sure if this will help you but I notice you don't set up any User ID in
the creation so it may be superfluous in the open statement.
It seems a bit strange to create with DAO and access with ADO, you mention
recordsets but DAO seems quite content with recordsets (unless there is a
specific flavour you need!).
Unfortunately I am not very familiar with ADO but do try the string without
the User ID also I think the string should be terminated with a ;

If none of this helps you, it might be useful to look at the
microsoft.public.vb.database NG

Regards
Dave O.

"Rick" <Rick@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:0404FCE4-E269-469B-BA03-857915841C93@xxxxxxxxxxxxxxxx
Sure.

DB Creation(DAO):
Set dbLocal = DBEngine.CreateDatabase("C:\WorkDir\MyDB.mdb", dbLangSpanish
&
";pwd=Mypwd", dbEncrypt)

--- later ---

DB Connectio(ADO):
MyCnn.Open "Provider=Microsoft.Jet.OLEDB.3.51; Data
Source=C:\WorkDir\MyDB.mdb;User ID =Admin;password=Mypwd"

And the error is that there is a problem with password or User ID.




--
Thanks,

Rick.

"Every problem needs a fast and efficient solution"


"Dave O." wrote:


"Rick" <Rick@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:FC5B4EEE-BEC5-45C7-8D1A-E9ACDC1D3710@xxxxxxxxxxxxxxxx
<<snip>>
I get an error
I'm using a standard connection string.

And that connection string is.....

For something like this you really need to show us what you've got and
TELL US WHAT ERROR YOU GET!

I'm sorry to shout but "I get an error" tells us exactly nothing.

Dave O.





.



Relevant Pages

  • Re: Error - Could not find installable ISAM
    ... You can use the Universal Data Link (UDL) dialog to point and click your way ... and copy and paste the connection string into your code. ... "Dave" wrote in message ... >>> I am just trying to connect to an Access database on my local IIS ...
    (microsoft.public.data.ado)
  • Re: Connecting to SQL -Looking for best methods
    ... The connection string would be similar, it would SQL Server not Access, and ... Same recordsets, same GetRows or looping ...
    (microsoft.public.excel.programming)
  • RE: How do I include a file
    ... I don't know why you'd want to have the connection string file on a separate ... server database, so I created a ... "Dave" wrote: ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Reading Excel sheet from asp.net returns empty cell
    ... Elton Wang ... "dave" wrote: ... I am using the following connection string to read values from rows from an ... excel sheet into a dataset/datatable. ...
    (microsoft.public.dotnet.framework.aspnet)
  • MSDataShape: Why are updates so slow?
    ... recordsets created with MSDataShape (connection string is ... updating about 2000 records in a recordset takes ... When using jet directly (connection string is ...
    (microsoft.public.data.ado)