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?
[Solved] Total column or field issue
[Solved] Total column or field issue
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
-
- Volunteer
- Posts: 1550
- Joined: Wed Jun 24, 2015 12:56 am
- Location: Colorado, USA
Re: Total column or field issue
Maybe this tutorial will help
viewtopic.php?f=83&t=29194
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
Apache OpenOffice 4.1.14 & LibreOffice 7.6.2.1 (x86_64) - Windows 10 Professional- Windows 11
-
- Posts: 7
- Joined: Wed Sep 03, 2014 9:31 am
Re: Total column or field issue
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
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
- charlie.it
- Volunteer
- Posts: 417
- Joined: Wed Aug 21, 2013 2:12 pm
- Location: Italy
Re: Total column or field issue
Ciao, can you attach here your database?KLeabu46 wrote:I am making a database ...
charlie
Italian AOO Admin
macOS 14 Sonoma M1: Open Office 4.1.15 - LibreOffice 7.5.7.1
http://www.charlieopenoffice.altervista.org
Italian AOO Admin
macOS 14 Sonoma M1: Open Office 4.1.15 - LibreOffice 7.5.7.1
http://www.charlieopenoffice.altervista.org
Re: Total column or field issue
Thanks guys, I was able to figure out how to create the total from a view using the above information!
Cheers!
Cheers!
OpenOffice 4.1.0 running HSQLDB in server mode on Windows 10