Hi friends,

i am using vb6 with ms-access2003..
and by dataenvironemtn and datareport ,
after i send the value to datareport ,

it says "DataFidle.Command1.pname[my field name) not found "

this error i got received ,
my code is :

Dim rsmodel As ADODB.Recordset

Set rsmodel = New ADODB.Recordset
Set rsmodel.ActiveConnection = gConnection

Call SetRs(rsmodel, gConnection, "select * from Register")
If rsmodel.RecordCount > 0 Then
Set DataReport1.DataSource = rsmodel
Else
End If
DataReport1.Show
Set rsmodel = Nothing

.................

then in the dataenviornment i added comand where i conect my table then i pass the field from there to datareport..

but i receiv ethe same error..

Please help me..

waiting for your valuable reply,..



With regards,
Mk..