i can't insert my date (box with red color) in heading
if my rpttext put in the detail section it will show many dates
if i try rpttext in the heading it is forbidden...
how?
DE1.rsCommand3.Open "SELECT * FROM tbl", con, adOpenDynamic, adLockOptimistic
If DE1.rsCommand3.EOF <> True Then
Me.MousePointer = vbHourglass
Set rpt.DataSource = DE1.rsCommand3
With rptCheckpointsReport.Sections("Section2")
.Controls("lblDateIssued").Caption = "date" + DE1.rsCommand3.Fields("lblDateIssued").Value
End With
error msg:
Item cannot be found in the collection corresponding to the requested name or ordinal
DE1.rsCommand3.Open "SELECT * FROM tbl", con, adOpenDynamic, adLockOptimistic
If DE1.rsCommand3.EOF <> True Then
Me.MousePointer = vbHourglass
Set rpt.DataSource = DE1.rsCommand3
With rptCheckpointsReport.Sections("Section2")
.Controls("lblDateIssued").Caption = "date" + DE1.rsCommand3.Fields("lblDateIssued").Value
End With
error msg:
Item cannot be found in the collection corresponding to the requested name or ordinal
ya you're right, i already changed the field to "0" and declare a new rpt
and now its working perfectly...
tnx to your support....
Code:
dim rptCheckpointsReport as New rptCheckpointsReport 'ADDED
DE1.rsCommand3.Open "SELECT * FROM tbl", con, adOpenDynamic, adLockOptimistic
If DE1.rsCommand3.EOF <> True Then
Me.MousePointer = vbHourglass
With rptCheckpointsReport.Sections("Section2")
.Controls("lblDateIssued").Caption = "date" + DE1.rsCommand3.Fields(0).Value
End With