Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Making Validation Rules
Message
From
16/03/1999 04:46:16
Yin Min Chen
Nec Home Electronics(M) Sdn Bhd
Sungai Petani, Malaysia
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Making Validation Rules
Miscellaneous
Thread ID:
00197965
Message ID:
00197965
Views:
47
I'm acessing to MS Access Database. Currently I have a table called "period". The fields in this table are :
1) YearNum Integer
2) PeriodNum Integer
3) StartDate Date
4) EndDate Date

The records in the table can not have a StartDate and EndDate overlap with the other records. Eg,If the table already have a record below :
YearNum=1999, PeriodNum=1, StartDate=01-Jan-1999, EndDate=31-Jan-1999

If we try to insert a new record below :
YearNum=1999, PeriodNum=2, StartDate=15-Jan-1999, EndDate=15-Feb-1999

The program must give an error.

What is the easiest way to control it? Can we use the validation rule to control this and how?

Thank you very much in advance.
Next
Reply
Map
View

Click here to load this message in the networking platform