Results 1 to 2 of 2

Acess 2007 Validation Problem- HELP!?

  1. #1
    Join Date
    Apr 2009
    Posts
    1

    Exclamation Acess 2007 Validation Problem- HELP!?

    Hi Im a newbie on the forum so thank you for reading this!



    I am creating a database in Microsoft Acess 2007...

    Basically one of databases tables contains two fields where the input for both is a Boolean (Yes/No) field. I want a validation for the second field so it can only be ticked (Yes) if the first Yes/No field has being ticked (Yes)... any ideas?

    I have some knowledge and know that in Access a Yes is treated as "-1" and a No is treated as a "0" so I tried [FirstFieldName]<=[SecondFieldName] (with the actuall names of the fileds being in the square brackets obviously )

    I thought this would make sure that the value of the first field was always less than or equal to the second and so the second could only be -1 (Yes) if the first was -1 (Yes). However this did not work and caused an "SLQ Error" (I think...)

    I do not have the software here with me now so I can not check this but would putting "=>[FirstFieldName]" in the validation section of the first field work?

    Any other ideas or solutions?

    Please help!

    Thanks in advance for your answers or just for taking the time to read my problem

    Jack x

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,898
    You will need to perform this validation in the data entry form. There are no triggers in Access tables.
    (RG for short) aka Allan Bunch Previous MS Access MVP - WinXP Pro, Win7 Pro Win10 Pro - acXP, ac07, ac10, ac13
    How to mark the thread as Solved!
    Teaching is not filling a bucket but lighting a fire.
    Borrowed quote..."Docendo discimus"

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

Similar Threads

  1. Validation and Input masks
    By Santi in forum Access
    Replies: 3
    Last Post: 03-26-2009, 10:53 AM
  2. Data Validation - Please help
    By larry S in forum Access
    Replies: 0
    Last Post: 11-16-2008, 10:24 PM
  3. Validation Rule: Date
    By krymer in forum Access
    Replies: 0
    Last Post: 08-27-2008, 03:30 PM
  4. Validation Rule
    By mistaken_myst in forum Database Design
    Replies: 2
    Last Post: 10-29-2007, 02:08 PM
  5. Validation on import
    By andy_42 in forum Import/Export Data
    Replies: 1
    Last Post: 10-23-2006, 03:52 PM

Tags for this Thread

Posting Permissions

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