M
Miss Kait
I have a MRP report that contains two subreports, one with planned
releases and the other with the last three buys. The user enters
criteria on a form; release dates, item number, vendor, commodity
code, and buyer. The main report only contains a header with info
related to the item number (i.e. last cost rec'd, description, abc
code, and so on). The planned releases subreport contains releases
for dates ranging from 9/01/04 to 6/01/05. I would like to show only
the planned releases for the dates that have occurred in the past up
to the end date specified by the user on the form (i.e. the user
enters a date range of 10/04/04 to 10/09/04 and the subreport shows
all planned releases from 9/01/04 to 10/09/04).
Currently I have a subroutine in the subreport that cancels the
printing when the release date is greater than the range entered on
the form. The release dates in the table are date data type; the
dates entered on the form are formatted to date data type also. Two
problems occur:
1. The dates being passed from the form are strings, which causes all
of the 2005 dates to print on the subreport.
2. The dates that are not being printed are leaving white space on
the subreport; it will print 9/01/04 to 10/09/04 releases, skip the
other dates in 2004 (leaving white space) and print the dates in 2005.
I have tried setting the Can Shrink to yes on the subreport.
What am I missing for the dates to be passed to vba as strings? Am I
setting the Can Shrink on the correct report or are there ways to
control white space in code? Should I be using Cancel = True to stop
the print or is there a better way to exit the subroutine?
I am using Windows and Access 2000.
I have searched the groups and can't seem to find a solution for this
problem. Please excuse the long post. Thanks for any suggestions!
releases and the other with the last three buys. The user enters
criteria on a form; release dates, item number, vendor, commodity
code, and buyer. The main report only contains a header with info
related to the item number (i.e. last cost rec'd, description, abc
code, and so on). The planned releases subreport contains releases
for dates ranging from 9/01/04 to 6/01/05. I would like to show only
the planned releases for the dates that have occurred in the past up
to the end date specified by the user on the form (i.e. the user
enters a date range of 10/04/04 to 10/09/04 and the subreport shows
all planned releases from 9/01/04 to 10/09/04).
Currently I have a subroutine in the subreport that cancels the
printing when the release date is greater than the range entered on
the form. The release dates in the table are date data type; the
dates entered on the form are formatted to date data type also. Two
problems occur:
1. The dates being passed from the form are strings, which causes all
of the 2005 dates to print on the subreport.
2. The dates that are not being printed are leaving white space on
the subreport; it will print 9/01/04 to 10/09/04 releases, skip the
other dates in 2004 (leaving white space) and print the dates in 2005.
I have tried setting the Can Shrink to yes on the subreport.
What am I missing for the dates to be passed to vba as strings? Am I
setting the Can Shrink on the correct report or are there ways to
control white space in code? Should I be using Cancel = True to stop
the print or is there a better way to exit the subroutine?
I am using Windows and Access 2000.
I have searched the groups and can't seem to find a solution for this
problem. Please excuse the long post. Thanks for any suggestions!