hello
CR 8.5
windows xp
Oracle 9i db
I have a sub report in a main report. I would like to use the same parms for both sub and main. I am prompted for the parms 2x when running the main report
IE:
county
year
county
year
this is not as I had expected. I see no work around in the help files.
The county field comes from a pick list in the parm itself.
the record selection:
{VW_COUNTY_CODE.CCAP_CNTY_NAME} = {?County} and
The year fiels is a formula like so:
(Year ({DAR_INCIDENT.INCIDENT_DT}) = ToNumber({?Year}))
that year is taken out odf an oracle date/time.
mm/dd/yyyy:hh:mm:ss
If I could - I would pass these as a "shared" to the sub
and use a record select statement in the sub - but 'shared' varibles arent allowed unless 'printing records'.
I could use a link to the sub...( which needs to run in the main report footer) but...I cant see how to get the year out of the date field( formula) to a formula doing the same for a date field on the sub for selection. There is only the database fields to pick for the links from main to sub.
straight dates wont work it seems - we use oracle date/time here.
help!!!!
CR 8.5
windows xp
Oracle 9i db
I have a sub report in a main report. I would like to use the same parms for both sub and main. I am prompted for the parms 2x when running the main report
IE:
county
year
county
year
this is not as I had expected. I see no work around in the help files.
The county field comes from a pick list in the parm itself.
the record selection:
{VW_COUNTY_CODE.CCAP_CNTY_NAME} = {?County} and
The year fiels is a formula like so:
(Year ({DAR_INCIDENT.INCIDENT_DT}) = ToNumber({?Year}))
that year is taken out odf an oracle date/time.
mm/dd/yyyy:hh:mm:ss
If I could - I would pass these as a "shared" to the sub
and use a record select statement in the sub - but 'shared' varibles arent allowed unless 'printing records'.
I could use a link to the sub...( which needs to run in the main report footer) but...I cant see how to get the year out of the date field( formula) to a formula doing the same for a date field on the sub for selection. There is only the database fields to pick for the links from main to sub.
straight dates wont work it seems - we use oracle date/time here.
help!!!!