Run code on new record



What's the best way to run code only when a new record is added to a bound
form?
I tried:

If IsNull(ClientID) THen
code here
End If

I placed this on an afterUpdate event for the first control likely to get
input thinking that the ClientID would be null initially. But the code does
not execute, making me think that my plan is no good.
Thanks, guys

--
sam
.



Relevant Pages

  • Re: System Restore
    ... Enquire, plan and execute ... Sam Hobbs wrote: ...
    (microsoft.public.windowsxp.basics)
  • Re: Windowscould not start
    ... Enquire, plan and execute ... Prev by Date: ...
    (microsoft.public.windowsxp.general)
  • Re: Folder creation
    ... Enquire, plan and execute ... Prev by Date: ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: [9fans] Learning how to use sam
    ... else I should read to help me learn how to use sam? ... background reading on Plan 9, ed, or anything else be helpful? ... you will first need to execute ...
    (comp.os.plan9)
  • Re: Zinzan scuppers ABs chances
    ... Plan B on NZ side? ... what team is able to execute two plans in one game?) ... Prev by Date: ...
    (rec.sport.rugby.union)