Hi,
I have a main form that pops up a form depending on what Line you select. The popup form is where the user puts in counts for different part numbers. I setup the following vbcode in the on close event of the popup form:
Forms![Main Form]![Pieces Run] = (Part1 + Part2 + Part3)
When the user closes the popup form, the idea is that Pieces_Run textbox is updated with the sum of all the part counts. It works fine the first time you do it, but if you try to enter different counts it shows the original sum. Eg:
First run:
Part1=10 Part2=10 Part3=10, Pieces_Run=30
Second run:
Part1=10 Part2=20 Part3=20, Pieces_Run=30 (should be 50)
How do I fix this problem.
I have a main form that pops up a form depending on what Line you select. The popup form is where the user puts in counts for different part numbers. I setup the following vbcode in the on close event of the popup form:
Forms![Main Form]![Pieces Run] = (Part1 + Part2 + Part3)
When the user closes the popup form, the idea is that Pieces_Run textbox is updated with the sum of all the part counts. It works fine the first time you do it, but if you try to enter different counts it shows the original sum. Eg:
First run:
Part1=10 Part2=10 Part3=10, Pieces_Run=30
Second run:
Part1=10 Part2=20 Part3=20, Pieces_Run=30 (should be 50)
How do I fix this problem.