Results 1 to 2 of 2
  1. #1
    scoe is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2013
    Posts
    91

    Message Box when data has been deleted in a field

    I have a field that has a default value of 0.... Only values between 0 and 100 can be used. At present if 101 is input the message comes up but if the field data is deleted no message shows. I have tried numerous permitations and am at a loss so would be grateful of any help in this matter.


    The code I have at the moment is in the Lost focus of the [POD] filed:
    [If [POD] = "" Then
    MsgBox "Incorrect Value Please select a value from the Drop Down List"
    End If]

    Many thanks

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Options include making the field required in the table and:

    http://www.baldyweb.com/BeforeUpdate.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 01-20-2015, 01:35 PM
  2. delete query produce #deleted in all deleted values
    By learning_graccess in forum Queries
    Replies: 2
    Last Post: 03-31-2012, 07:20 AM
  3. Replies: 0
    Last Post: 07-06-2011, 07:33 PM
  4. Log Data Changes and Deleted records
    By pkstormy in forum Code Repository
    Replies: 0
    Last Post: 12-31-2010, 12:41 AM
  5. Records deleted with NO warning message.
    By evanscamman in forum Access
    Replies: 2
    Last Post: 12-14-2007, 11:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums