missing data warning



Hello All

I have a form on which I want to warn the user when data is missing from
certain fields - but I need to allow them to proceed (i.e. close the record)
even without the data if necessary. I have tried setting the following event
procedure as the form's BeforeUpdate or AfterUpdate events:

If IsNull([fax].Value) And IsNull([add1].Value) Then
Beep
MsgBox ("Please enter an address and/or a fax number")
End If

but the problem is that if the user is updating the record by simply moving
to the next record (or by creating a new record by doing ctrl + as they are
in the habit of doing) the messagebox pops up but then the form moves to the
next (or new) record - so that they are in danger of adding the address/fax
data to the wrong record. I need somehow to prevent the movement to the
next/new record until the user has somehow 'accepted' the lack of
address/fax data for the current record.

I cannot see how to do this - if anyone could help I would be very grateful.

Many thanks
Leslie Isaacs


.



Relevant Pages

  • Re: Threads missing from Outlook Express Folder
    ... and redownloading them, they show up again in OE. ... I think somehow OE gets ... out of sync with the microsoft newsgroup server sometimes. ... The threads go missing ...
    (microsoft.public.fox.programmer.exchange)
  • Re: OT: Morse
    ... eggs - you'll still eat it, but feel like you're missing out somehow. ...
    (uk.rec.motorcycles)
  • Re: The missing ingredient
    ... It's been gradually evolving, acquiring those things that go to form a ... Something was missing. ... Somehow, it failed to achieve true shedness. ... Richard Robinson ...
    (uk.rec.sheds)
  • Re: LED sign missing IR keyboard-possible to "decode" the protocol it uses?
    ... industries)at a garage sale that is programmed with an IR keyboard, ... which is missing. ... Is it possible to somehow figure out a way to ...
    (sci.electronics.repair)
  • Re: Non-Scientific Survey of Scientific Calculators
    ... Somehow I'm missing the beginning of this thread, ... For day-to-day use I started with an HP-32S II, then went to the 33s, and ... Jake ...
    (sci.electronics.design)