Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21264

Datagrid values to datareport

$
0
0
Hi Sirs,

i know my question is a bit old and im still learning about vb6. i would just like to know how to put data coming form datagrid to datareport thru code.
i have a sample code that i made and i know this is not sufficient.:)

Code:

Set DataReport1.DataSource = dbform2.dbRS
Set DataReport1.DataMember = dbform2.dbRS("Sender").Name
With DataReport1

.Sections("Section1").Controls.Item("txtsender") = dbform2.dbRS.Fields("Sender").Value

End With

DataReport1.Show

i also tried checking the web for more information about datareport and datagrid methods,properties and events.
it would be a great help if you can post a link so i can also check on it.

TIA.

God Bless you all.:)

Viewing all articles
Browse latest Browse all 21264

Trending Articles