Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pass a text from a forms text box to a datareport label 1

Status
Not open for further replies.

giyer555

Programmer
Sep 8, 2003
75
IN
Hi!!! Experts

In VB 6 datareport how do I pass a text from a forms text box to a label in datareport

Please help
 
Johnwm

Sorry, to tell u but its giving a run time error saying
Invalid argument

Is is running properly at ur end? Pls check


Thanx
 
The code posted works fine for me.
Which value is giving the error? It's starting to look as if either your VB installation is duff, or that something unrelated is causing the problem.

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Hi!!! Johnwm

Sorry to trouble u again.
The datareport section(xyz) shows empty. If possible pls send a sample project related to this datareport prob on giyer555@yahoo.com

I can check if the same works fine here.

Thanx & regards
 
Sorry but I don't do the email bit! See faq222-2244 paragraph 12

You didn't answer my last question, and I don't understand the <The datareport section(xyz) shows empty> reference

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Hi!!! Johnwm

Good news!! the datareport works fine now
As u said the error might be due to the mapping between section numbers and names appears to be arbitrary.

And the mistake i committed was that i was using section name as index instead of a string value.
i.e xyz instead of string value &quot;xyz&quot;

Now its working fine & now i can send the comboBox text to the label in datareport.

Thanx a lot for the trouble taken.



 
Yo're welcome!

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
How about a Star for johnwm for the extended help.
 
THanks for the nice thought CCLINT!
[smile]

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Johnwm might be already studded with lots of stars for his patience & timely help.

And he deserves more than a star. I wish him all the success in his life.

And thanx to u too CCLINT
 
giyer555
Thank you - it's always nice to feel appreciated!

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top