Results 1 to 4 of 4
  1. #1
    yako966 is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Feb 2016
    Posts
    2

    Field Validation Rule based on another field

    Hello there,



    my name is Giacomo and I'm new here. This is my first post actually. Before I post this I spent two days googling around, without success. I also looked for an existing thread here, but I didn't find anything, so please forgive me if I'm duplicating something..

    My question is quite simple: In Access 2013, how can I create a Validaton Rule not allowing a field to be populated if another field is left empty?

    I'm not a VBA programmer, so I really would like to work with the Field Validation Rule, in the Table Design View.

    I tried the following: [Field_Name] Is Not Null

    Not working..

    Any suggestion?

    Thanks a lot for your help. Of course I'm at your disposal in case you need any further information.
    Last edited by yako966; 02-16-2016 at 11:29 AM.

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2013
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,614
    I don't think that can be done at the table level.
    I would do that kind of validation in a forms Before Update event.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    yako966 is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Feb 2016
    Posts
    2
    Many thanks Bob,

    I'll see how I can implement that.

  4. #4
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2013
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,614
    You would need to write a small amount of code in the forms Brfore Update event.
    Post back if you need help with that
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

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

Similar Threads

  1. Validation Rule in Multi Value Field
    By lima in forum Access
    Replies: 3
    Last Post: 10-14-2014, 12:14 PM
  2. Replies: 3
    Last Post: 05-02-2012, 04:05 AM
  3. Validation rule for a month field
    By Alliana Gray in forum Access
    Replies: 7
    Last Post: 08-11-2011, 12:41 PM
  4. Referencing table data in field validation rule
    By toad848 in forum Database Design
    Replies: 3
    Last Post: 03-19-2009, 07:03 AM
  5. Validation rule for a text field
    By wasim_sono in forum Forms
    Replies: 4
    Last Post: 03-14-2006, 11:39 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