Re: VBA in Excel & ADO: some problems

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"Santiago" <Santiago@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:24C04FCA-5263-439E-8131-3406504CADDE@xxxxxxxxxxxxxxxx
> Hey guys,
>
> I'm quite new in ADO and I need some help...
>
> 1) can the same MSAccess database be accessed from Excel using ADO at the
> same time?? what should be the "mode" property on the connection string??

Yes you can. As it is being shared, you would not want tyo try and open it
exclusivley, so don't set it at all.

> 2) how can I put a password to the database and access to it from MSExcel
> using ADO?? should I use the "user" and "password" property in the
connection
> string??

Yes, here is an example

oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=c:\somepath\mydb.mdb;" & _
"Jet OLEDB:Database Password=MyDbPassword", _
"myUsername", "myPassword"
..


.



Relevant Pages

  • VBA in Excel & ADO: some problems
    ... I'm quite new in ADO and I need some help... ... can the same MSAccess database be accessed from Excel using ADO at the ... what should be the "mode" property on the connection string?? ...
    (microsoft.public.excel.programming)
  • Re: Database fields get cut off in Excel
    ... I'm faily new at using Excel, so bear with the stupid questions: ... What's ADO? ... I just used the MS Query ... > will have to adjust the connection string to connect to a sybase db. ...
    (microsoft.public.excel.programming)
  • Re: why cant I get data from the ACCESS
    ... connection string along these lines - note this is an ODBC connection ... The exception types for ADO are not CDBException. ... the same catalog as the catalog where xx.mdb is,the applictaion is totally ...
    (microsoft.public.vc.mfc)
  • Re: DSN Behaving Badly
    ... With ADO, you can have either a global connection string, global command ... your application which use data from the sql server. ... With ADO, you would still have tbl1, but it would be a local table (for ...
    (comp.databases.ms-access)
  • Re: Working program gives problemm at clients site error:provider not found
    ... Project referrence: ADO 2.8 Library ... Connection string - ... if run source code through vb6, it says missing ADO 2.8 library. ... Have the clients download and install the FoxPro Provider ...
    (microsoft.public.vb.general.discussion)