473,417 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,417 software developers and data experts.

Need help with ValidationRule

How ValidationRule for data/hour field should I formulate if I wanted
that date to be prior/earlier than another date in other data/hour
field in the same table?

How syntax/notation about referencing to other fields looks like?

thanks, bart

Dec 14 '05 #1
2 1328
Open your table in design view.

Open the Properties box (View menu.)

Beside the Validation Rule in the Properties box, enter:
[EndDate] >= [StartDate]
substituting your fiele names.

Notes:
1. The Validation Rule in the Properties box is the table rule, applied at
record-level. It is different from the rule in the lower pane of table
design (which is a field-level rule.)

2. In older versions of Access, the rule above has the side effect of making
both fields required. You might want to use:
([StartDate] Is Null) OR ([EndDate] Is Null) OR ([EndDate] >=
[StartDate])

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Lebowski" <bd*******@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
How ValidationRule for data/hour field should I formulate if I wanted
that date to be prior/earlier than another date in other data/hour
field in the same table?

How syntax/notation about referencing to other fields looks like?

thanks, bart

Dec 14 '05 #2
Works!

Thank you

Dec 14 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jo | last post by:
Folks Using VB6 and ADO I am doing the following: Dim avntData(0 to 9) As Variant Dim rcsData As ADODB.Recordset Dim lngCol As Long For lngCol = LBound(avntData) To UBound(avntData)...
4
by: MLH | last post by:
Seeking code to ID & print all controls on all forms having a ValidationRule property set - but no ValidationText property setting. Perhaps some modification of the following procedure would do...
1
by: napstar | last post by:
I have 2 combo boxes which can be used to set an employee's availability and Salary type on an employees form in access. I have sub which changes availability to “Full time”, if the salary type is...
2
by: napstar | last post by:
I have 2 combo boxes which can be used to set an employee's availability and Salary type on an employees form in access. I have sub which changes availability to “Full time”, if the salary type is...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.