PDA

Click to See Complete Forum and Search --> : Datareport error


leontro
May 6th, 2000, 05:14 AM
Hi, everybody..

I have a dataenvironment DTE,a command cmdliste,and a datareport rpt. When I want to change the field of rpttxthissemiktari it does not work and an error occurs "DataField 'cmdliste.60652' not found...What is the solution...Thanks!

Private Sub mnuAdresEtiketleri_Click()
With dte.rscmdliste
If .State <> adStateClosed Then .Close
.Source = "SELECT * FROM Hissedar where h_hissemiktari<>0"
.Sort = "H_Ulke ASC,H_Sehir ASC"
.Open
End With
Set rpt.DataSource = dte
rpt.Sections("sct4").Controls("rptlblheader").Caption = "PTT Listesi"
rpt.Sections("sct1").Controls("rpttxthissemiktari").DataField = dte.rscmdliste.Fields("h_hissemiktari")
rpt.Show
End Sub