Click here to Skip to main content
15,892,643 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to pass 2 string parameter from a form3 to data environment to generate data report. when i use the below code code i get a run-time error message of code '-2147217872(80040e30') stating that "Type name is invalid"
the code i used is
VB
DataEnvironment1.Cmd1 Form3.Text1.Text, Form3.Text2.Text
DataReport.Show


where cmd1 is the command name in the data environment. Pl help me.
Any other way to send the 2 string parameter to data environment and then call data report???
Posted
Updated 3-Dec-11 15:03pm
v2
Comments
[no name] 3-Dec-11 21:03pm    
EDIT: added emphasis on problem
thatraja 9-Dec-11 1:27am    
Need more details, Whats the datatype of those 2 fields?
Abulhassan 9-Dec-11 12:53pm    
One is a string and other is the date datatype

1 solution

Its been long time worked in VB6. Check these

Why do I get 80040e30 errors?[^]

Data Environment Programming Guidelines[^](Contains details about Creating a Parameterized Query)
Tutorial 4: Accessing databases using the DataEnvironment Control[^]
 
Share this answer
 
Comments
Abulhassan 9-Dec-11 23:08pm    
Thanks alot sir. In my design i use goop header and group footer. I came to know that for group i have to send a parameters separately. Is it true???
thatraja 9-Dec-11 23:31pm    
I don't think so. Just try.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900