Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21178

how to sum total profit from 2 tables and display the total in a textbox

$
0
0
hey
how do i calculate a total from diffrent tables?
ill put here the names of the 2 tables and there text and subitems
Code:

Tablename: Inventory ,  Formname - Frmnewproduct ,Txt(11).text = .SubItems(16) - Txt(11) is what it cost me.                    E.X 520 Euro
Code:

Table name: CashBox ,  Formname -FrmCashRegister,  Txt(9).text = .SubItems(13) - (Txt(9) is the price the customer pay's me. E.X 840 Euro
in FrmCashRegister Form i have a text box thats called TxtTotal. this sopose to be the total :: myprofit : 280 Euro

how do i calculate between those to and get the total of my profrit?

i hope im understud :)

Viewing all articles
Browse latest Browse all 21178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>