V veasna Registered User. Local time Yesterday, 18:34 Joined Dec 21, 2009 Messages 18 Jan 12, 2010 #1 Dear Access members, Could you tell me to code connect to database and the query to select a field of data from database? Thanks,
Dear Access members, Could you tell me to code connect to database and the query to select a field of data from database? Thanks,
D di.miller Registered User. Local time Yesterday, 18:34 Joined Nov 9, 2010 Messages 16 Nov 29, 2010 #2 Hi Veasna, You can find the correct connection string to connect to your database at: http://www.connectionstrings.com/ They list connection strings to any database you need! -Diana
Hi Veasna, You can find the correct connection string to connect to your database at: http://www.connectionstrings.com/ They list connection strings to any database you need! -Diana
D di.miller Registered User. Local time Yesterday, 18:34 Joined Nov 9, 2010 Messages 16 Nov 29, 2010 #3 Hi Veasna, For Access 2007 standard security string: Code: Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\myFolder\myAccess2007file.accdb;Persist Security Info=False; If your database has a password: Code: Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\myFolder\myAccess2007file.accdb;Jet OLEDB:Database Password=MyDbPassword; -Diana
Hi Veasna, For Access 2007 standard security string: Code: Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\myFolder\myAccess2007file.accdb;Persist Security Info=False; If your database has a password: Code: Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\myFolder\myAccess2007file.accdb;Jet OLEDB:Database Password=MyDbPassword; -Diana