Hi there. I'm hoping someone can tell me what would be the best way to accomplish this.
I have a report which needs to display a date range in it's header. The problem is that this report will be called from several different forms. (It will never be opened directly from the database window). On some of the forms, the user will type in the begin and end dates in textboxes, but on other forms the app will calculate the dates behind the scenes.
I have several ideas for getting the dates to the report, but I'm not sure which ones would be considered "good programming practice" Any advice?
1. Store the dates in global variables and reference the variable in the on_open event of the report. (Global variables ICK
)
2. Pass the dates to the report as arguments. Ok, I admit, I don't know how to do this, but I read somewhere that it was possible)
3. Set the tag property of the report = dates and set the textbox = me.tag?
TIA
Maq![[americanflag] [americanflag] [americanflag]](/data/assets/smilies/americanflag.gif)
<insert witty signature here>
I have a report which needs to display a date range in it's header. The problem is that this report will be called from several different forms. (It will never be opened directly from the database window). On some of the forms, the user will type in the begin and end dates in textboxes, but on other forms the app will calculate the dates behind the scenes.
I have several ideas for getting the dates to the report, but I'm not sure which ones would be considered "good programming practice" Any advice?
1. Store the dates in global variables and reference the variable in the on_open event of the report. (Global variables ICK
![[thumbsdown] [thumbsdown] [thumbsdown]](/data/assets/smilies/thumbsdown.gif)
2. Pass the dates to the report as arguments. Ok, I admit, I don't know how to do this, but I read somewhere that it was possible)
3. Set the tag property of the report = dates and set the textbox = me.tag?
TIA
Maq
![[americanflag] [americanflag] [americanflag]](/data/assets/smilies/americanflag.gif)
<insert witty signature here>