The first form in my project is a simple form for a shop selling cars. At the end of the form is a text box called txtTotal.text, this is the total cost of each sale. When I press the print button I not only want to print a sales invoice(I have that bit done) but I also want the total in txtTotal.text to be added to lblDaysTakings on my second form called frmAudit.
Ive searched the web far and wide and cant find anything either suitable or within my level of understanding.
Ive tried code such as
Private Sub cmdPrint_Click() Dim curTotal As Currency Dim curDaysTakings As Currency Dim frmAudit As Form Dim frmCarSales As Form curTotal = Val(txtTotal.Text) curDaysTakings = Val(lblDaysTakings) curDaysTakings = curDaysTakings + curTotal 'or frmAudit.DaysTakings = frmAudit.DaysTakings + frmCarSales.Total
and several other combinations but Im obviously a mile and a half off track as Im not getting anywhere, can anybody offer me any advice? Id really appreciate any help at all, thanks.
The project is a lot bigger than just the print button but I didnt see the point in posting the rest as I have everything else sorted out, its just transfering the numbers from one form to the other thats getting me.
Thanks again in advance
Admin Edit: Please use code tags when posting your code. Code tags are used like so => Thanks, PsychoCoder