Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 655223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:34:49+00:00 2026-05-13T22:34:49+00:00

My table’s records need to satisfy two conditions: Entries in the ClosingDate field cannot

  • 0

My table’s records need to satisfy two conditions:

  • Entries in the ClosingDate field cannot correspond to a date before what is in the RequestDate field.
  • A BidBond value may be supplied if, and only if, the record’s Type field is set to “Tender”

The two resultant multi-field validation rules are:

1. ([ClosingDate] Is Null) Or ([ClosingDate] >= [RequestDate])
2. ([Type]="Tender") Or ([BidBond] Is Null)
  • If Rule 1 is violated, the validation text should be “Closing date cannot occur before the request is made.“

  • If the data entered falls foul of Rule 2, “Bid bonds can only be assigned to tenders.” should greet the user.

I know I can combine the two validation rules with an And clause, but then how would I specify two different validation texts depending on which validation rule is violated?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T22:34:49+00:00Added an answer on May 13, 2026 at 10:34 pm

    I don’t see how to do what you want with validation rules at the table level. Instead I will suggest using forms for data editing. Forms give you more flexible options to handle complex business rules. You can handle your validation requirements with events (such as Before Update and After Update) associated with individual form fields, or events at the form level.

    One possibility your question didn’t address is what should happen if both your validation rules are violated in the same record. Your validation text issue becomes even more complicated. I wouldn’t attempt it with table validation rules.

    Furthermore, Access MVP types recommend limiting user interactions to forms. The users should never even see datasheet views of tables or queries.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Table one: 35 million records Table two: 1,6 million records I'm executing an update
Table structure id (p) | date | id2 (fk) | id3 (fk) where (p)
Table A has two columns: ID and name I want to input 3 ID
table order id_order | date | id_product | id_size | id_gender | name |
Table stores id name date 1 foo 2011-06-15 15:10:34 2 bar 2011-07-02 16:45:18 Table
Table my_table is: CREATE TABLE MY_TABLE( ID NUMBER NOT NULL, MY_DATE DATE NOT NULL);
Table UserData (UserID, Sales, Credits) I need to return the SUM of sales, sum
Table one: products Which have fields like products_id products_price master_categories_id Table two: specials .
I have two tables with like below codes: Table: Accounts id | username |
Table: Customer with columns Start_Time and End_Time. I need to add a new column

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.