DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Visual Basic 4 / 5 / 6 (http://www.daniweb.com/forums/forum4.html)
-   -   multiple parameters to data report (http://www.daniweb.com/forums/thread92031.html)

stargazr Oct 7th, 2007 12:21 pm
multiple parameters to data report
 
i want to pass 3 parameters to my data report in VB 6.
Private Sub DataReport_Initialize()
DataEnvironment1.Command1 (Form1.txtregno.Text,form1.cstd.Text,form1.cinstlno.text)
End Sub
i am getting compile error. expected '='

plz help..

hopalongcassidy Oct 7th, 2007 3:18 pm
Re: multiple parameters to data report
 
This is a misleading error message. It is usually caused by a reference to a Sub that has more than one parameter. Try Call DataEnvironment1.Command1(...

stargazr Oct 7th, 2007 3:48 pm
Re: multiple parameters to data report
 
doesnt work..gives some multiple ole db error..


All times are GMT -4. The time now is 3:37 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC