awinnn
09-04-03, 12:09 PM
Hi all,
I ada 3 table, Staff Detail (STAFF_NO,NAME,GRADE), Leave Detail (STAFF_NO,CODE,START_DATE1,END_DATE1) dan Leave Code (CODE,TYPE). Table Staff Detail and Leave Code have one to many relationship with table Leave Detail.
Saya create query, Leave. Dalam form, saya amik data dari table Staff Detail. Dalam subform, saya amik data dari query Leave. Both form is linked by STAFF_NO.
How to check the date is not duplicate? As for example,
LeaveType StartDate EndDate TotalDays
A 2/5/2002 3/5/2002 2
B 3/5/2002 5/5/2002 3
The system should display error message saying that the StartDate has entered before. How to do that? Do you have any idea?
Thanx in advance...:)
I ada 3 table, Staff Detail (STAFF_NO,NAME,GRADE), Leave Detail (STAFF_NO,CODE,START_DATE1,END_DATE1) dan Leave Code (CODE,TYPE). Table Staff Detail and Leave Code have one to many relationship with table Leave Detail.
Saya create query, Leave. Dalam form, saya amik data dari table Staff Detail. Dalam subform, saya amik data dari query Leave. Both form is linked by STAFF_NO.
How to check the date is not duplicate? As for example,
LeaveType StartDate EndDate TotalDays
A 2/5/2002 3/5/2002 2
B 3/5/2002 5/5/2002 3
The system should display error message saying that the StartDate has entered before. How to do that? Do you have any idea?
Thanx in advance...:)