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.
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.
I fixed the above error but now i am currently getting another "No Value Given for one or more parameter"
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"
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
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.
The Access Query looks like
![]()
Please Login or Register to view this content.
Anyone suggestions please.
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.
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.
If they were declared properly in Access, the SQL would begin with a PARAMETER statement.
Could you help me re-write the SQL then?
You should add this as the first line
![]()
Please Login or Register to view this content.
I added the parameters to sql but no luck
![]()
Please Login or Register to view this content.
Is it the same error message? If so, can you provide the SQL for qryMonthlyValues as well please?
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.
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.
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.
I believe this:
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 Login or Register to view this content.
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.
DB attached with all the query. The Dataset used is a dummy but the approach is same
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.
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?![]()
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.
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!![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks