Hello
I have a form that is attached to one query that I used to filter records, then I have subforms on the form as well where I just dragged the tables needed on the form. I found some VB that allows a user to enter a plan ID into a text field and it filters all of the subforms that I have on this one form.
2 of the fields that will be manually entered will be used to calculate another field that I have in a table.
My form was starting to get cluttered so my thought process was to have one smaller form where a user will enter some of the data needed than save, then perhaps a button to calculate the field needed, so it would be stored prior to moving onto the final data entry form.
For an example
Table_1, Field: height. A user will enter the height above ground, so let's say height=50
Table_2, Field: ground_level. A user will fill in a number for ground level, let's say, 500
Table_2 Field: difference. This would be the field that I need the calculation, the calculation is ground_level minus height. 450
I tried using a text box and then using the expression builder, it didn't work but I'm not sure this would technically be saving the value, I think this would just be calculating this on the fly
How would I store this, VB that once the fields are entered it subtracts than stores the value? The calculation is just a simple number minus a number, but instead of someone manually subtracting I thought there would be a way to do this.
I assume I can just do it manually, but this is a simple version that I will have to do on a few other fields as well, so I learn from the simple (math calculation) version hopefully.
thank you and I hope this is clear enough, it is hard for me to upload the database