Form and sub form Calculations Query (1 Viewer)

fsagwe

Registered User.
Local time
Today, 01:16
Joined
Jun 22, 2014
Messages
14
I have a form with sub forms . Each sub form has a textboxes getting me a total value of a field. In the main form I want to add a textboxes that will sum up values in the textboxes of the subforms. Help!
 

Ranman256

Well-known member
Local time
Today, 04:16
Joined
Apr 9, 2015
Messages
4,337
in the FOOTER of the subform, put a text box to total all recs
=Sum(field)

in the parent form, put a text box to look at this field in the subform footer.
=forms!subform!form!txtBox

(use the BUILDER to get the path name correct!)
 

MdHaziq

New member
Local time
Today, 16:16
Joined
Sep 19, 2017
Messages
9
Hello,

I want to do something similar.

I would like to change the qty when a user wants to withdraw or stock in an item.

How can I go about doing it?

I have attached a rough design of the form and storing the new qty in the table.
 

Attachments

  • UpdateQty.accdb
    392 KB · Views: 64

Minty

AWF VIP
Local time
Today, 09:16
Joined
Jul 26, 2013
Messages
10,371
You shouldn't store an on hand quantity, you should always calculate it.
And you are storing Stock In and Stock Out as separate items - again they should be in the same column - Positive values In - Negative values Out.

Please have a good read here http://allenbrowne.com/AppInventory.html for how you should approach this project.

Good luck.
 

MdHaziq

New member
Local time
Today, 16:16
Joined
Sep 19, 2017
Messages
9
Thz for the link and the comment.

I have read it.
I will get coding when I get home.
Any problems I will post back here.

I hope you will be here
 

MdHaziq

New member
Local time
Today, 16:16
Joined
Sep 19, 2017
Messages
9
Hello,

I tried but failed.

My qty textbox shows#Name?, something like that.

What went wrong?
 

Attachments

  • UpdateQty2.accdb
    404 KB · Views: 66

Users who are viewing this thread

Top Bottom