+ Reply to Thread
Results 1 to 23 of 23

Provider Cannot be found

  1. #1
    Forum Contributor
    Join Date
    05-19-2015
    Location
    Karnataka, INdia
    MS-Off Ver
    MS Office 2010
    Posts
    277

    Provider Cannot be found

    Hi,

    I am not sure where i am going wrong but everytime i run this code it gives me an Run time Error 3706: Provider Could not be Found. I have checked Activex Data Object 2.8 Reference.

    Please Login or Register  to view this content.
    Last edited by Biplab1985; 03-05-2017 at 08:19 AM.

  2. #2
    Forum Contributor
    Join Date
    05-19-2015
    Location
    Karnataka, INdia
    MS-Off Ver
    MS Office 2010
    Posts
    277

    Re: Provider Cannot be found

    I fixed the above error but now i am currently getting another "No Value Given for one or more parameter"

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Provider Cannot be found

    You are using late binding and do not need to tick any reference, but you are using the wrong version of ADO

    Provider=Microsoft.Jet.OLEDB.4.0

    Should be

    Provider = "Microsoft.ACE.OLEDB.12.0"

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Provider Cannot be found

    You might be getting errors on SQL statement.
    Follow this link which shows you how to construct a date

    http://www.excelforum.com/excel-prog...ml#post4597530

  5. #5
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Provider Cannot be found

    Hi

    Perhaps you did not declare the parameters properly in Access but merely entered them as criteria values in the SQL query. What does the SQL of your query look like?
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  6. #6
    Forum Contributor
    Join Date
    05-19-2015
    Location
    Karnataka, INdia
    MS-Off Ver
    MS Office 2010
    Posts
    277

    Re: Provider Cannot be found

    The Access Query looks like

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    05-19-2015
    Location
    Karnataka, INdia
    MS-Off Ver
    MS Office 2010
    Posts
    277

    Re: Provider Cannot be found

    Anyone suggestions please.

  8. #8
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Provider Cannot be found

    You need to either declare the parameters properly in the Access query window, or perhaps use ? instead of the parameter names in your SQL query from Excel.

  9. #9
    Forum Contributor
    Join Date
    05-19-2015
    Location
    Karnataka, INdia
    MS-Off Ver
    MS Office 2010
    Posts
    277

    Re: Provider Cannot be found

    That i have done, is there anything i am missing here, It run properly is access query without any error but not in excel

    Please Login or Register  to view this content.

  10. #10
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Provider Cannot be found

    If they were declared properly in Access, the SQL would begin with a PARAMETER statement.

  11. #11
    Forum Contributor
    Join Date
    05-19-2015
    Location
    Karnataka, INdia
    MS-Off Ver
    MS Office 2010
    Posts
    277

    Re: Provider Cannot be found

    Could you help me re-write the SQL then?

  12. #12
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Provider Cannot be found

    You should add this as the first line
    Please Login or Register  to view this content.

  13. #13
    Forum Contributor
    Join Date
    05-19-2015
    Location
    Karnataka, INdia
    MS-Off Ver
    MS Office 2010
    Posts
    277

    Re: Provider Cannot be found

    I added the parameters to sql but no luck

    Please Login or Register  to view this content.

  14. #14
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Provider Cannot be found

    Is it the same error message? If so, can you provide the SQL for qryMonthlyValues as well please?

  15. #15
    Forum Contributor
    Join Date
    05-19-2015
    Location
    Karnataka, INdia
    MS-Off Ver
    MS Office 2010
    Posts
    277

    Re: Provider Cannot be found

    Yes, I am getting the same error. I actually have 3 queries. So what i did is created sub queries and merged all. Below is the sql

    Please Login or Register  to view this content.

  16. #16
    Forum Contributor
    Join Date
    05-19-2015
    Location
    Karnataka, INdia
    MS-Off Ver
    MS Office 2010
    Posts
    277

    Re: Provider Cannot be found

    Hello,

    Any Input, I have to close this project tomorrow. I have used similar approach in my previous projects with DAO and querydef but never came across anything like this.Any suggestions would be much appreciated.

  17. #17
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Provider Cannot be found

    The only thing that immediately comes to mind if you are using ADO rather than DAO, is that you should use % instead of * as the wildcard character. Other than that, I would need to see all the queries' definitions and- preferably- a database copy.

  18. #18
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Provider Cannot be found

    I believe this:

    Please Login or Register  to view this content.
    should be this:

    Please Login or Register  to view this content.
    Ans maybe start with a very simple SELECT statement to make sure the rest is working.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  19. #19
    Forum Contributor
    Join Date
    05-19-2015
    Location
    Karnataka, INdia
    MS-Off Ver
    MS Office 2010
    Posts
    277

    Re: Provider Cannot be found

    DB attached with all the query. The Dataset used is a dummy but the approach is same
    Attached Files Attached Files

  20. #20
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Provider Cannot be found

    Hi Biplab, give this a try:

    Please Login or Register  to view this content.
    Last edited by Arkadi; 03-06-2017 at 02:44 PM.

  21. #21
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Provider Cannot be found

    Biplab, did you have any luck solving your problem? If not, did you try the code I posted above? If it still gives errors or has problems, let us know so we can help you figure it out?

  22. #22
    Forum Contributor
    Join Date
    05-19-2015
    Location
    Karnataka, INdia
    MS-Off Ver
    MS Office 2010
    Posts
    277

    Re: Provider Cannot be found

    Yes, it did. Thank you so much. The code worked just fine.

    \\One question: If i need to add another parameter Say customer. The below should work right?

    Please Login or Register  to view this content.

  23. #23
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Provider Cannot be found

    Yes that is correct, they should be added in the order they are defined in the query, but yes, you just increment the number.... note that you forgot the "s" in parameter(2)... should be parameters(2)

    If the issue is resolved please remember to mark the thread as solved? Thanks in advance!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Provider Not Found
    By sawoodalam1989 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-01-2013, 01:52 AM
  2. Run time "3706" Provider cannot be found. It may not be properrly installed
    By worrall in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-02-2012, 10:41 AM
  3. Add columns to excel using OLEDB provider
    By Umamageswari in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-07-2010, 08:19 AM
  4. Find the cheepest provider in a table
    By ElmerS in forum Excel General
    Replies: 6
    Last Post: 06-16-2009, 08:14 AM
  5. VBA for Excel service provider(s)
    By gabch in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-17-2006, 10:11 PM
  6. [SOLVED] OLE DB Provider and Excel
    By David Mullins in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-26-2006, 03:55 PM
  7. [SOLVED] What Is The Right Provider?
    By Jim Heavey in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-06-2006, 02:25 PM
  8. check for OLE DB provider?
    By cesw in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-01-2005, 07:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1