473,385 Members | 1,661 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,385 software developers and data experts.

one column's value > other column's value

I want to give validation rule for a column -
I want one field value must be greater than another field value .
both column's are in same table
can anybody help me???
Oct 27 '07 #1
3 2096
ADezii
8,834 Expert 8TB
I want to give validation rule for a column -
I want one field value must be greater than another field value .
both column's are in same table
can anybody help me???
What you are referring to is called a 'Table Level Validation Rule' and it is created in such a manner:
  1. Open the Database Window
  2. Select your Table ==> Design View
  3. Right Click in the Upper Pane ==> Properties
  4. You are now in the Table Properties Window
  5. Set your Validation Rule as in: [Termination_Date] > [Hire_Date]
  6. Set up the Validation Text to be displayed if this Table Level Rule is violated such as: The Termination Date must be greater than the Hire Date
Oct 27 '07 #2
NeoPa
32,556 Expert Mod 16PB
I'd forgotten that even existed. Nice one again ADezii :)
Oct 27 '07 #3
ADezii
8,834 Expert 8TB
I'd forgotten that even existed. Nice one again ADezii :)
Thanks NeoPa, us old buzzards still have a few tricks up our sleeves. (LOL).
Oct 27 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Silvio Matthes | last post by:
Hello, I'm new to the list and did not find a suitable answer to my question so here it is: I try to select the rows of a table where the content of a varchar-column is empty ('') and...
0
by: Rajgodfather | last post by:
I am getting the end couldn't error while validating xml file against xsd. The xml file looks perfect. XML: <event id="1"> <!-- Successful event. --> ...
1
by: =?Utf-8?B?R3JlZw==?= | last post by:
I have a <asp:GridViewcontrol that is populated with records. The first column I display contains a "UserID" DataField. I've created my column using the following code: <asp:BoundField...
3
sanjib65
by: sanjib65 | last post by:
I have an objectDataSource that is bound to an XML file in which data is inserted through a DetailsView. Now each time I insert data a GridView shows the update. In the XML datasource I have an Item...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.