Hi , can you please mail me the excel file .I am also trying to connect excel with password protected accdb database but unable to do it. It will show error message "Invalid Password".It will be a great help
On Mon, Aug 29, 2011 at 9:40 AM, NOORAIN ANSARI <[email protected]>wrote: > Dear Dario, > > See below link.. > > http://akoul.blogspot.com/search/label/Update%20Access%20Table%20from%20Excel > > On Mon, Aug 29, 2011 at 1:45 PM, oryn <[email protected]> wrote: > >> Hi, >> I have a macro that should open Access 2007 database in .accdb format. >> Code works with .mdb format but with .accdb it doesn't. It returns >> message that programme is unable to open database (I checked it with >> several databases in .accdb format). Does anybody have a solution? >> >> Sub Pokarz_form_lista_klientow() >> Dim rsKwerenda As ADODB.Recordset >> Dim oConn As ADODB.Connection >> Dim sSciezkaBazy As String, sSql As String >> Dim rKlienci As Range >> >> >> Range("V_klienci").ClearContents >> sSciezkaBazy = Sheets("A_Ust").Cells(1, 2) >> Set oConn = New ADODB.Connection >> oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & >> sSciezkaBazy & ";" >> >> >> sSql = "SELECT Klient_Id, Status, Umowa, Region FROM Klienci >> order by Status asc, Klient_Id asc" >> >> Set rsKwerenda = New ADODB.Recordset >> rsKwerenda.Open sSql, oConn >> Set OpenADODBRecordset = rsKwerenda >> >> >> -- >> >> ---------------------------------------------------------------------------------- >> Some important links for excel users: >> 1. Follow us on TWITTER for tips tricks and links : >> http://twitter.com/exceldailytip >> 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 >> 3. Excel tutorials at http://www.excel-macros.blogspot.com >> 4. Learn VBA Macros at http://www.quickvba.blogspot.com >> 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com >> >> To post to this group, send email to [email protected] >> >> <><><><><><><><><><><><><><><><><><><><><><> >> Like our page on facebook , Just follow below link >> http://www.facebook.com/discussexcel >> > > > > -- > Thanks & regards, > Noorain Ansari > *http://noorain-ansari.blogspot.com/*<http://noorain-ansari.blogspot.com/> > > -- > > ---------------------------------------------------------------------------------- > Some important links for excel users: > 1. Follow us on TWITTER for tips tricks and links : > http://twitter.com/exceldailytip > 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 > 3. Excel tutorials at http://www.excel-macros.blogspot.com > 4. Learn VBA Macros at http://www.quickvba.blogspot.com > 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com > > To post to this group, send email to [email protected] > > <><><><><><><><><><><><><><><><><><><><><><> > Like our page on facebook , Just follow below link > http://www.facebook.com/discussexcel > -- Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups "MS EXCEL AND VBA MACROS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/excel-macros. For more options, visit https://groups.google.com/groups/opt_out.
