I want to run a report showing all data entered since a certain date (StartDate), which is recorded in the table as JoinDate. So when I run the report I want it to ask for StartDate and then run the query/report. How is it best to do this? I thought of having a form on which to enter the desired StartDate, but I do not know how to pass the value to the query/report.
Regards, Nocton
[Solved] Report with variable date
[Solved] Report with variable date
Last edited by Nocton on Tue Oct 04, 2011 7:29 pm, edited 2 times in total.
OpenOffice 4.1.16 on Windows 10 & 11
Re: Report with variable date
Hello
I have not a clear solution for your problem. But maybe this can help you a little
http://www.oooforum.org/forum/viewtopic.phtml?t=131237
Maybe it is enough when you change the 1 to 4
oSingleComposer.appendFilterByColumn(oWorkcontrol.model.boundfield ,TRUE,1)
http://api.openoffice.org/docs/common/r ... rator.html
Romke
I have not a clear solution for your problem. But maybe this can help you a little
http://www.oooforum.org/forum/viewtopic.phtml?t=131237
Maybe it is enough when you change the 1 to 4
oSingleComposer.appendFilterByColumn(oWorkcontrol.model.boundfield ,TRUE,1)
http://api.openoffice.org/docs/common/r ... rator.html
Romke
LibreOffice 24.8.5.2 on openSUSE Leap 15.6
Re: Report with variable date
Create a parameter queryNocton wrote: in the table as JoinDate. So when I run the report I want it to ask for StartDate
Code: Select all
SELECT "name", "value", "JoinDate" FROM "table1" WHERE "JoinDate" >= :StartDateEvery time you start the report you are questioned.
Does this help?
Re: Report with variable date
Brilliant, thank you, Winfried. Just what I wanted.
Regards, Nocton
Regards, Nocton
OpenOffice 4.1.16 on Windows 10 & 11