DAO Database

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi Team :

I have a mdb file (with password, I know the password)

How do i insert the password in the next lines :
CString TTabla1::GetDefaultDBName()
{
//return _T("D:\\Path1\\Net1.mdb");
return _T("\\\\Way\\Path1\\Net1.mdb");
}
Thanks again

German
 
Hi German!
I have a mdb file (with password, I know the password)

How do i insert the password in the next lines :
CString TTabla1::GetDefaultDBName()
{
//return _T("D:\\Path1\\Net1.mdb");
return _T("\\\\Way\\Path1\\Net1.mdb");
}

You can´t...
You must add the password in the OpenDatabase command...

See: How to open a password-protected database through Automation in
Access 2000
http://support.microsoft.com/kb/235422/en-us

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
 
Thanks Jochen :

I have reviewed the link, But I found reference to OpenDatabase (vBa with
";PWD="xx") while in Visual C++ I am using CDaoDatabase, How can I translate
PWD from OpenDatabase to CDaoDatabase ?

Thanks in advanced,
German Medina
(e-mail address removed)
 
Back
Top