Hi
I have a report which I want to use to produce a list of parts with a date expired, both sorted by part number or date.
I achieve this using a form to select the sort order, and then call the report from this form and set up the sort order in sorting and grouping using the value on the still open report.
This works OK.
I also want to call up the same report from a different form to show expired dates for the part number being viewed in that form.
I get the correct records by using a where condition in the report opening statement. Again this works OK.
My problem is that when I call the report from the parts form, the selector form is not open, so I get an error pop up box asking me for the value from the selector form.
How do I test for the form being open in the iif statement I am using in the sorting and grouping box, or can I set up the sorting and grouping in VBA code, or is there a better way?
HELP!!!!
Sue
I have a report which I want to use to produce a list of parts with a date expired, both sorted by part number or date.
I achieve this using a form to select the sort order, and then call the report from this form and set up the sort order in sorting and grouping using the value on the still open report.
This works OK.
I also want to call up the same report from a different form to show expired dates for the part number being viewed in that form.
I get the correct records by using a where condition in the report opening statement. Again this works OK.
My problem is that when I call the report from the parts form, the selector form is not open, so I get an error pop up box asking me for the value from the selector form.
How do I test for the form being open in the iif statement I am using in the sorting and grouping box, or can I set up the sorting and grouping in VBA code, or is there a better way?
HELP!!!!
Sue