I am using date parameter to generate report. Is it possible to display date parameter in report ? For e.g. This report is "from date: to to date:"
I am using date parameter to generate report. Is it possible to display date parameter in report ? For e.g. This report is "from date: to to date:"
How do you pass the date parameter to generate report ?
Use a textbox on form to enter the date value, then options:
1. pass the date parameter to report with OpenArgs argument of OpenReport
DoCmd.OpenReport "report name", , , , , , Me.textboxname
2. in ControlSource of textbox on report, reference the form textbox
=Forms!formname!textboxname
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
I am passing parameter it through queries
Use a textbox on form to enter the date value, then options:
1. pass the date parameter to report with OpenArgs argument of OpenReport
DoCmd.OpenReport "report name", , , , , , Me.textboxname
2. in ControlSource of textbox on report, reference the form textbox
=Forms!formname!textboxname
The problem with text box is that i will have two data parameters one coming from queries and another coming from text box.
Is there any other way with which the data parameters which i am using from queries will also show up on report ?
What do you mean by 'coming from query' - a popup input parameter? I never use popup inputs in query. Can't validate input and if it is in the criteria row, it is not available for further reference. Actually, I don't use dynamic parameters in queries at all. I use forms to input parameters and then pass the parameters to report with WHERE CONDITION, like:
DoCmd.OpenReport "report name", , , "ID=" & Me.ID, , Me.datetextbox
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
What do you mean by 'coming from query' - a popup input parameter? I never use popup inputs in query. Can't validate input and if it is in the criteria row, it is not available for further reference. Actually, I don't use dynamic parameters in queries at all. I use forms to input parameters and then pass the parameters to report with WHERE CONDITION, like:
DoCmd.OpenReport "report name", , , "ID=" & Me.ID, , Me.datetextbox
Well in my case the project that i am working on requires to pull up report using date range and same date range need to be showed on report. I am using form just for entry purposes. What are my options ?
I think the options are already described. What specifically do you not understand?
Review:
http://www.allenbrowne.com/ser-62code.html
http://www.datapigtechnologies.com/f...mtoreport.html
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
I think the options are already described. What specifically do you not understand?
Review:
http://www.allenbrowne.com/ser-62code.html
http://www.datapigtechnologies.com/f...mtoreport.html
I will post the outcome let me follow the video....it seem very interesting and helpful
My preferred way is to write the value to a table and then read it with the "on open" event of the report.