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..

Recommended Answers

All 2 Replies

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(...

doesnt work..gives some multiple ole db error..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.