yameen2011
Registered User.
- Local time
- Today, 18:03
- Joined
- Jan 19, 2013
- Messages
- 59
Hi everyone,
I am running my own school and working on the school database for in which monthly fee vouchers generated, after depositing the fee in the bank by parents/students , bank dispatched the vouchers and scroll to me. After that i have to post that vouchers entry to my database for marking that voucher as paid at my end.
I have to post every voucher entry individually, therefore i am making an unbound form for multiple entries at once.
on that form only voucher number entered on the unbound form and Student_ID, Student_Name, Voucher_Amount fetched from the tbl_voucher.
now everything is fine
But i want to prevent the user to enter the voucher_no twice in the voucher_no field .
fields on the form
Voucher_no, Std_ID, Std_Name, Amount,
Voucher_no1, Std_ID1, Std_Name1, Amount1,
Voucher_no2, Std_ID2, Std_Name2, Amount2,
Voucher_no3, Std_ID3, Std_Name3, Amount3,
Voucher_no4, Std_ID4, Std_Name4, Amount4,
Voucher_no5, Std_ID5, Std_Name5, Amount5,
Sample data for voucher_No field
291,292,293,294,295
Any one guide me that how to compare the Voucher_no,Voucher_no2,Voucher_no3,Voucher_no4,Voucher_no5 fields for finding if there are duplicate values in any voucher_no field and prompt the user on clicking save button and prevent saving.
Sample attached.
thanks and regards.
I am running my own school and working on the school database for in which monthly fee vouchers generated, after depositing the fee in the bank by parents/students , bank dispatched the vouchers and scroll to me. After that i have to post that vouchers entry to my database for marking that voucher as paid at my end.
I have to post every voucher entry individually, therefore i am making an unbound form for multiple entries at once.
on that form only voucher number entered on the unbound form and Student_ID, Student_Name, Voucher_Amount fetched from the tbl_voucher.
now everything is fine
But i want to prevent the user to enter the voucher_no twice in the voucher_no field .
fields on the form
Voucher_no, Std_ID, Std_Name, Amount,
Voucher_no1, Std_ID1, Std_Name1, Amount1,
Voucher_no2, Std_ID2, Std_Name2, Amount2,
Voucher_no3, Std_ID3, Std_Name3, Amount3,
Voucher_no4, Std_ID4, Std_Name4, Amount4,
Voucher_no5, Std_ID5, Std_Name5, Amount5,
Sample data for voucher_No field
291,292,293,294,295
Any one guide me that how to compare the Voucher_no,Voucher_no2,Voucher_no3,Voucher_no4,Voucher_no5 fields for finding if there are duplicate values in any voucher_no field and prompt the user on clicking save button and prevent saving.
Sample attached.
thanks and regards.