A
AHopper
On a form "AnalysisDialogBox" I have two unbound text
boxes "StartDate" and "EndDate". They both have no format
but they have an input mask 00/00/00.
In detail section of a report "AnalysisRevised" On Print
event I have put the following
Dim ReportStartDate As Date
Dim ReportEndDate As Date
ReportStartDate = Nz([Forms]![AnalysisDialogBox]!
[StartDate])
ReportEndDate = Nz([Forms]![AnalysisDialogBox]![EndDate])
If ReportStartDate >= 1 And ReportEndDate >= 1 Then
OnePositionPackaged = (Nz(DSum("(Nz
([GoodOnePack]))", "OneGPackData", "[JobNumber]=" &
Me.JobNumber & "And [SkidNumber]=" & Me.SkidNumber & "And
[PackDate]>=" & ReportStartDate & "And [PackDate]<=" &
ReportEndDate)))
End If
"GoodOnePack", "JobNumber", "SkidNumber" and "PackDate"
are fields in a table "OneGPackData".
The PackDate field is set to Date/Time and when stored has
Now information stored in it.
Me. references the report "AnalysisRevised". JobNumber and
SkidNumber are textboxes on the report.
When I print the report I receive no information from
the "OneGPackData" table.
I have tried adding # before the #ReportStartDate# and
#ReportEndDate# but that was not accepted.
Thanks for your help.
Allan
boxes "StartDate" and "EndDate". They both have no format
but they have an input mask 00/00/00.
In detail section of a report "AnalysisRevised" On Print
event I have put the following
Dim ReportStartDate As Date
Dim ReportEndDate As Date
ReportStartDate = Nz([Forms]![AnalysisDialogBox]!
[StartDate])
ReportEndDate = Nz([Forms]![AnalysisDialogBox]![EndDate])
If ReportStartDate >= 1 And ReportEndDate >= 1 Then
OnePositionPackaged = (Nz(DSum("(Nz
([GoodOnePack]))", "OneGPackData", "[JobNumber]=" &
Me.JobNumber & "And [SkidNumber]=" & Me.SkidNumber & "And
[PackDate]>=" & ReportStartDate & "And [PackDate]<=" &
ReportEndDate)))
End If
"GoodOnePack", "JobNumber", "SkidNumber" and "PackDate"
are fields in a table "OneGPackData".
The PackDate field is set to Date/Time and when stored has
Now information stored in it.
Me. references the report "AnalysisRevised". JobNumber and
SkidNumber are textboxes on the report.
When I print the report I receive no information from
the "OneGPackData" table.
I have tried adding # before the #ReportStartDate# and
#ReportEndDate# but that was not accepted.
Thanks for your help.
Allan