[Solved] Sorted in Query but not in Report

Getting your data onto paper - or the web - Discussing the reports features of Base
Post Reply
nathan3553
Posts: 17
Joined: Sat Oct 18, 2014 6:35 pm

[Solved] Sorted in Query but not in Report

Post by nathan3553 »

 Edit: Split from initial topic: Sorted in Query but not in Report, Hagar, Moderator. 
Similar issue as above.

Query outputs as it should:
select a.mail_name as "Name",a.address,a.city,a.state,a.zipcode, b.check_num as "Check #", b.cash as "Cash", b.non_money as "Non Money", b.amount as "Amount",b.date_contributed as "Date",c.fund as "Fund" from family a inner join contribution b on a.id=b.family_id inner join fund c on b.fund_id=c.id where b.date_contributed >= '2014-01-01' and b.date_contributed <= '2014-12-31' order by "Name","Date"

Report: It is sorting by A.ID

Any work around or fix in the works? How are you using Calc to create a report that looks professional?
Last edited by RoryOF on Fri Jan 16, 2015 6:45 pm, edited 2 times in total.
Reason: tagged solved
OpenOffice 4 on Windows 7/OpenOffice 4 on MacOSX
F3K Total
Volunteer
Posts: 1039
Joined: Fri Dec 16, 2011 8:20 pm

Re: Sorted in Query but not in Report

Post by F3K Total »

Hi,
try to use a VIEW instead of a QUERY as datasource of the report.
HTH R
  • MMove 1.0.6
  • Extension for easy, exact positioning of shapes, pictures, controls, frames ...
  • my current system
  • Windows 10 AOO, LOLinux Mint AOO, LO
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Sorted in Query but not in Report

Post by Villeroy »

nathan3553 wrote: Any work around or fix in the works? How are you using Calc to create a report that looks professional?
I use to use a well formatted spreadsheet or the Oracle Report Builder extension.
F3K Total wrote:try to use a VIEW instead of a QUERY as datasource of the report.
I tried and it works indeed.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
nathan3553
Posts: 17
Joined: Sat Oct 18, 2014 6:35 pm

[SOLVED]Re: Sorted in Query but not in Report

Post by nathan3553 »

Creating a view did work! I've been struggling with this for days. Thanks.
OpenOffice 4 on Windows 7/OpenOffice 4 on MacOSX
arfgh
Posts: 566
Joined: Tue Mar 05, 2013 6:44 pm

Re: [Solved] Sorted in Query but not in Report

Post by arfgh »

what you mean guys with 'create a view' ?

i also want to be able to sort on reports that seems not working.
OpenOffice last version | Mageia Linux x64 | Ubuntu Linux | Windows 8.1 Enterprise x64 | Java last version
F3K Total
Volunteer
Posts: 1039
Joined: Fri Dec 16, 2011 8:20 pm

Re: [Solved] Sorted in Query but not in Report

Post by F3K Total »

open your eyes
CV.PNG
CV.PNG (6.58 KiB) Viewed 3345 times
and use F1
arfgh
Posts: 566
Joined: Tue Mar 05, 2013 6:44 pm

Re: [Solved] Sorted in Query but not in Report

Post by arfgh »

so creating a 'view', we will be able to obtain sorting on reports ? howto ?
OpenOffice last version | Mageia Linux x64 | Ubuntu Linux | Windows 8.1 Enterprise x64 | Java last version
eremmel
Posts: 1080
Joined: Tue Dec 30, 2008 1:15 am

Re: [Solved] Sorted in Query but not in Report

Post by eremmel »

I suggest, that before asking for the obvious, you list your efforts executed far to obtain the knowledge yourself. This makes it posible for others to be more effective.
It's Microsoft marketing that tells you computers are qualified for non-technicians
W11 22H2 (build 22621), LO 7.4.2.3(x64)
Post Reply