Select [Event Procedure] in the control's after update combobox then click on the button with three dots.
The line
[AMOUNT DISPERSED]=Abs([AMOUNT DISPERSED])*-1
goes into the code for the after update event like this:
Private Sub AMOUNT_DISPERSED_AfterUpda
te ()
[AMOUNT DISPERSED]=Abs([AMOUNT DISPERSED])*-1
End Sub
Btw: It is best to avoid spaces, underscores and other special characters in your naming of objects. For example: txtAmountDispersed is just as easy to read as AMOUNT DISPERSED. Objects named with special characters including spaces need to be placed in brackets for Access to recognize them correctly. Here is an extreme example of the problems you will have using special characters in your names:
I named a textbox
!@#$%^&*()_+= -{}:;"'<,>?/|~
and had Access create an event procedure. Access converted the name of the textbox to:
Ctl_______________________
______
so if the form had the name:
~!@#$%^&*()_+= -{}:;"'<,>?/|~
referencing the textbox would be:
Forms!l___________________
__________
!Ctl______
__________
__________
___
A useful tip for someone who doesn't want someone else (probably even themselves) from reading their code.
And spaces will sometimes cause problems in VBA references even after years of trouble free operation.
It is also a good idea to use a naming scheme such as Leszynski naming conventions (see references). It makes it clearer what type of object you are naming and it reduces the risk of duplicate name problems (like a control name and its control source).
References:
http://www.xoc.net/standards/rvbanc.asphttp://www.dhdurso.org/articles/ms-access-naming.htmlhttp://www.acc-technology.com/namconv.htmhttp://www.databasedev.co.uk/naming_conv.htmlhttp://en.wikipedia.org/wiki/Leszynski_naming_convention