Results 1 to 2 of 2

Thread: Validation Rule

  1. #1
    Join Date
    Sep 2005

    Unanswered: Validation Rule


    I have one field which set the validation Rule.

    Validation Rule: >0

    So, the value must be greater than 0.

    I enter 5, then go to next field, and then go back to change 5 to Null (blank). Then the error message come out.

    I want to allow the blank in the field after I change the value.


    I tried to use another way:
    Private Sub Invnum_AfterUpdate()

    If ([Invnum] <= 0) Then
    MsgBox "The value must be greater than zero.", vbInformation, "Message"
    End If
    End Sub

    But, it doesn't work very well, because the setforce cannot go back to the [Invnum] field. And, if close the form, it cannot hold it.

    How can I control it?

    Please let me know, thanks.

  2. #2
    Join Date
    Mar 2003
    The Bottom of The Barrel
    Provided Answers: 1
    What is setforce?
    oh yeah... documentation... I have heard of that.

    *** What Do You Want In The MS Access Forum? ***

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts