Hi everyone,
What I wan't to do seems very hard, and am wondering if anyone would be able to help out.
Here is what I am trying to do:
First of all, so you somewhat understand my field headers and table, I work for an oil company. I have a form that is based off a table and some of the fields include "Date", "Well Name", "Stock", "Sales", and "Oil". In my table, data is entered for each well every day.
Here is an example of my table:
What I want to do is create a text box on my form and I want it to do a calculation to see if the data is correctly entered. Here is the formula that I want to use in this text box:
I just can't figure out how to get the Stock from the previous day to work with. I have been stuck on this problem for about a week now, so any help would be gratefully accepted.
Thanks,
Chris
What I wan't to do seems very hard, and am wondering if anyone would be able to help out.
Here is what I am trying to do:
First of all, so you somewhat understand my field headers and table, I work for an oil company. I have a form that is based off a table and some of the fields include "Date", "Well Name", "Stock", "Sales", and "Oil". In my table, data is entered for each well every day.
Here is an example of my table:
Code:
Date Well Name Stock Sales Oil
08/15/2005 Well1 140 44 25
08/16/2005 Well1 120 35 15
08/15/2005 Well2 150 49 22
08/16/2005 Well2 115 40 30
What I want to do is create a text box on my form and I want it to do a calculation to see if the data is correctly entered. Here is the formula that I want to use in this text box:
Code:
If ([Stock] - [StockFromPreviousDay] + [Sales]) = ([Oil])
{
Print "OK"
}
Else
{
Print "Error"
}
Thanks,
Chris