Private Sub BrokerCredit_AfterUpdate()
If IsNull(BrokerCredit) Then
BrokerCredit = 0
End If
End Sub
Due to the number of these controls I am seeking a way to handle this
without adding an afterupdate event to each control. Is there an easier way?
Any help would be greatly appreciated!
Thanks
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
"jeffw85" <jef...@discussions.microsoft.com> wrote in message
news:BF85460E-A8D3-4DE1...@microsoft.com...
open (or create) a standard module and paste the following function into it,
as
Public Function isDefaultZero()
If IsNull(Screen.ActiveControl) Then Screen.ActiveControl = 0
End Function
open your form in design view. select *all* the controls that you want to
default back to zero. in the Properties box, add the following expression
directly on the AfterUpdate property's line, as
=isDefaultZero()
because you selected all the controls, the expression will be added to the
event line of all the controls at the same time.
hth
"jeffw85" <jef...@discussions.microsoft.com> wrote in message
news:BF85460E-A8D3-4DE1...@microsoft.com...
"jeffw85" <jef...@discussions.microsoft.com> wrote in message
news:8DF4D9E6-9D81-4953...@microsoft.com...