mmshah
asked on
Data Report Designer in VB6
I have some reports developed using Microsoft Data Report Designer in VB6. One of the reports is based on parameters in SQL statement. I have two computers : one at home where my wife developed the report and one here in my office. The report with parameters works fine at home even running from an exe file. When I brought that .exe file here at my office it gives me an error. I have exactly the same database as she has at home. I could very well run reports without parameters. The error I am getting is : "No value given for one or more required parameters". Does anybody have any idea or did you run into this kind of problems before ? I will appreciate your help.
I also installed DCOM98 as well as ran mdac_typ.exe but still the problem exists. If this problem remains then how could I run this reports at one of my clients place.
Thanks a lot in advance.
I also installed DCOM98 as well as ran mdac_typ.exe but still the problem exists. If this problem remains then how could I run this reports at one of my clients place.
Thanks a lot in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
No, we do not have any table names or field names containing "-" in their names. And also if that's the case it should be consistent at both the places, atleast that's what I could figure out while reading that article in KB on MSDN Online.
Thanks.
Thanks.
ASKER
Hi Rover,
You could be right. Because after we built our report we changed datatypes for some of the fields the report was pointing to. So what I will do is I will give it a try again and hopefully I will be able to solve it. I post a comment about the result of my next test.
Thanks a lot.
You could be right. Because after we built our report we changed datatypes for some of the fields the report was pointing to. So what I will do is I will give it a try again and hopefully I will be able to solve it. I post a comment about the result of my next test.
Thanks a lot.
ASKER
Hi Rover,
When I brought the database from the machine where it worked to the machine where it was giving that problem, the report I was asking about worked without any problems. Also I would like to ask if one of these MS Access tables is indexed on a particular field, when we specify simple SELECT statement for the report we DO NOT get records sorted on that field unless we specify ORDER BY explicitly. Any help would be appreciated.
Thanks.
When I brought the database from the machine where it worked to the machine where it was giving that problem, the report I was asking about worked without any problems. Also I would like to ask if one of these MS Access tables is indexed on a particular field, when we specify simple SELECT statement for the report we DO NOT get records sorted on that field unless we specify ORDER BY explicitly. Any help would be appreciated.
Thanks.
First of all: you see ! That's why !
But if you alter anything in the Access' table structure or stored proc parameters.....
Second: A SELECT statement WITHOUT the ORDER BY (or GROUP BY) methods will use the order (sort) of the records being entered into the table.
So if at moment1 I enter "recordio nummero uno" into the Field 'MyIndexedField' , later moment, moment2, I enter "aaaaaa record #0" then the SELECT statement orders on moment1, moment2 and so on.
If you want it ordered moment2, moment1 then you should use:
SELECT * FROM MyTable ORDER BY MyIndexedField
Hope this helps!
D'Mzzl!
RoverM
But if you alter anything in the Access' table structure or stored proc parameters.....
Second: A SELECT statement WITHOUT the ORDER BY (or GROUP BY) methods will use the order (sort) of the records being entered into the table.
So if at moment1 I enter "recordio nummero uno" into the Field 'MyIndexedField' , later moment, moment2, I enter "aaaaaa record #0" then the SELECT statement orders on moment1, moment2 and so on.
If you want it ordered moment2, moment1 then you should use:
SELECT * FROM MyTable ORDER BY MyIndexedField
Hope this helps!
D'Mzzl!
RoverM
ASKER
Hi Rover,
Thank you very much for your help. Yes, you are right I got that hint of copying the database from my home based on your experience. So you deserve all the points for this question.
Thanks a lot again.
Thank you very much for your help. Yes, you are right I got that hint of copying the database from my home based on your experience. So you deserve all the points for this question.
Thanks a lot again.
"BUG: Data Form Wizard Mishandles '-' in Table or Field Names"
http://support.microsoft.com/support/kb/articles/Q193/5/14.ASP