yronium Level: Moderator

 Registered: 14-04-2002 Posts: 907
|
Re: Query
Hello. I guess Amt means 'amount' (don't make us guess, be clear.)
1) When do you need to act? When table1.Amt changes? When table2.Amt changes? Every ten milliseconds? On next christmas? Every five years?
2) What has to be "equal to sum of amt of table2..."? The table1 current record's table1.Fields("Amt").Value, or last records's Amt field, or create a new record with sum(table2.Amt) in its Amt field, or the sum of all records' table1.Amt field - say, sum(table1.Amt) = sum(table2.Amt)? Or what?
3) And what 'flag' is? What do you mean by "set[update] flag"? Do you mean the UPDATE SET instruction of SQL? (...Did you know that 'UPDATE' and 'SET' are SQL keywords?...)
And more, are you using ADO (I hope so to you)? On what db engine: MSJet, SQLServer, MySQL, Oracle, DBase, ...or what? It'd be nice to know these things too.
So finally, again, don't make us guess: be clear! I don't think you'll pay an extra price if you type some more to explain us.
Waiting patienty around here, yours.
PS. in the while, have a trip here, or into any of the avaliable translated versions.
____________________________
Real Programmer can count up to 1024 on his fingers
|