01-17-2012 10:51 AM
Hello Labview Help:
I'm trying to automate the setting of new password in Microsoft Access 2003 or 2007 Database Application.
in Labview Activex or Visual Basic.
Here is where the NEW password would be written.
It would be great if you can help or point me to the right place.
I tried looking at MSDN info, but quite complicated.
The hardest part is how to navigate to the other objects within Microsoft Access with Activex.
thank you,
diego2000
01-17-2012 12:43 PM
If you have the DatabaseConnectivity Toolkit and an open connection to the DB, you should be able to use an Execute Query to modify the password.
http://msdn.microsoft.com/en-us/library/bb177884(v=office.12).aspx
ALTER USER user PASSWORD newpassword oldpassword
01-17-2012 02:52 PM
Hi Phillips:
Yes, I have the Database Connectivity Toolkit.
I will try the command and will report back. It should work.
thanks,
Diego2000
01-17-2012 04:30 PM
Hi Phillip:
I have tried what you sugested. Getting close but getting an error.
Looks like I'm missing a file?
I have also tried the "ALTER DATABASE PASSWORD new1 old1" following command:
Thanks for your help,
diego2000.
01-17-2012 06:08 PM
01-17-2012 07:22 PM
Phillip:
This is how I'm opening the Access Database. Where would I write the mode=12 ?
Where would I write the "mode=12" ?
Provider=Microsoft.ACE.OLEDB.12.0;Persist Security Info=False;Data Source=C:\New3.mdb
thank you much,
diego2000
01-17-2012 07:33 PM
Should be able to add Mode=12; to end of string...
From the link:
OleDbConnection objOleDbConnection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=Sample.mdb; Mode=12");
01-18-2012 11:52 AM
Thanks Phillip:
I'll try to convert to a Labview statement.
diego2000
01-19-2012 09:49 AM
Phillip:
On second thought, how would you change the password of Access with Visual Basic or VBA?
I'm downloading Visual Basic now.
thanks,
diego2000