Solved

Validation Rule

Posted on 2014-09-03
4
204 Views
Last Modified: 2014-09-03
Experts, in a validation rule, can I refer to field within the table?   I am referring to [Type] within the field  [ExpectedDisbRecdDate].  Not sure if a rule like this is better placed in a form.

for example:

if [type] = "JBIC",>Date()+30,<Date()+25
the error I get is "enclose text data in quotes"

thanks

ValidationRule
0
Comment
Question by:pdvsa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 40301454
not really sure what you are trying to accomplish here, but,

try something like this

IIf([type]="JBIC",>Date()+30,<Date()+25)
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 40301469
if you are using A2010 or greater, data macro may work for you..
0
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 40301487
just tried what you have in a table and i am not surprise that it will not accept the entry in the validation rule property..

perhaps use the validation or setting the values of the Datefield using a form.
0
 

Author Closing Comment

by:pdvsa
ID: 40301498
thank you.  I will try the validation rule at the form level.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question