D,
You could accomplish this in several ways depending on how you want it to
happen.
Is this field on a continuous form or not? If it is a continous form then
you could simply perform the calc in your form record source by creating a
new column that feeds the new form field also note that this would also work
if it is not a continous form... such as set your new column value as
MyNewFieldValue: IIF([TheOtherFieldName]>9999,[TheOtherFieldName],"")
As you can see above we have used the IIF statement to determine if the
other field is greater than 9999 if it is then our new column will also
contain the same value however, if it is not greater than 9999 it will
contain a zero length string = nothing. Does this value only need to be
calculated upon initial opening of the form? If so you could have the form on
open event perform the same calculation and then assign the value to the form
field you want to display it in.
--
~ SPARKER ~
DMainland said:
I use a form in a database with a field for 'gross amount'. I would like a
subsequent field on the same form to fill with that gross amount if the
number is greater than 9999. What code and location for the code would
accomplish this task?