[Solved] Total column or field issue

Discuss the database features
Post Reply
KLeabu46
Posts: 22
Joined: Tue Jun 10, 2014 11:02 pm

[Solved] Total column or field issue

Post by KLeabu46 »

Hello,

I am making a database to simultaneously handle inventory, sales and other aspects of running my business. I have a list of items on a table, each with their own MSRP, Sale Price, and Cost to the business. I would like to have either new columns with total MSRP, total Sale, and total cost, or have these appear in fields on a form. I cannot figure out how to do this. Any thoughts?
Last edited by KLeabu46 on Wed Aug 03, 2016 5:53 pm, edited 1 time in total.
OpenOffice 4.1.0 running HSQLDB in server mode on Windows 10
UnklDonald418
Volunteer
Posts: 1550
Joined: Wed Jun 24, 2015 12:56 am
Location: Colorado, USA

Re: Total column or field issue

Post by UnklDonald418 »

Maybe this tutorial will help
viewtopic.php?f=83&t=29194
If your problem has been solved, please edit this topic's initial post and add "[Solved]" to the beginning of the subject line
Apache OpenOffice 4.1.14 & LibreOffice 7.6.2.1 (x86_64) - Windows 10 Professional- Windows 11
oneindelijk
Posts: 7
Joined: Wed Sep 03, 2014 9:31 am

Re: Total column or field issue

Post by oneindelijk »

You can add views in your database which can contain extra columns
ie.
CREATE VIEW 'Totals' AS SELECT *,t.value * t.amount AS total FROM table AS t
You can then use a subform that displays the 'extra' data from the record
OpenOffice 5.1 on Ubuntu 16.04
User avatar
charlie.it
Volunteer
Posts: 417
Joined: Wed Aug 21, 2013 2:12 pm
Location: Italy

Re: Total column or field issue

Post by charlie.it »

KLeabu46 wrote:I am making a database ...
Ciao, can you attach here your database?
charlie
Italian AOO Admin
macOS 14 Sonoma M1: Open Office 4.1.15 - LibreOffice 7.5.7.1

http://www.charlieopenoffice.altervista.org
KLeabu46
Posts: 22
Joined: Tue Jun 10, 2014 11:02 pm

Re: Total column or field issue

Post by KLeabu46 »

Thanks guys, I was able to figure out how to create the total from a view using the above information!

Cheers!
OpenOffice 4.1.0 running HSQLDB in server mode on Windows 10
Post Reply