rainman89
I cant find the any key..
- Local time
- Today, 01:51
- Joined
- Feb 12, 2007
- Messages
- 3,013
Eureka i do understand! but rarely do we do a total expense amount, we are more interested in how much goes to what case,, etc.... i do however see your point!~!Think about it....one expense with two cases. Initial amount entered was $100....your code runs when the second case gets added and changes it to $50.
When you query that field for that expense you get the value $50. Now, unless you then multiply that value by the number of records in ExpenseCases with the same ExpenseID, you have the wrong answer.
I think I see a tiny sliver of light starting to peek throught he clouds...
try maybe the eye of a pinhead...... ~~~~!!!!!
Going about this would require a change in the way that we have set up the other form correct? instead of having an expense amount in the expenseform, i would have to have it in the expensecaseform? so i could still have a text box on the main form that they entered the expenseamount into, but also have one in the expensecasesubform that drew the data from the value in that form and did the calculations on it before saving.. (if i dont write this down ill forget come monday)
then in the timesheet form if i did it the exact same way and also stored the starttime endtime, i could make it still look like the starttime and endtime are being used, but infact use only the expense minutes field for my calculations....
i wish i had brought this topic up before instead of now, after over 5000 records have already been created.....