lookforsmt
Registered User.
- Local time
- Today, 06:41
- Joined
- Dec 26, 2011
- Messages
- 672
HI! all
Request your help on DCount. I have attached my db for better clarification
Hi! I have attached my db:
I want to achieve the below 1 & 2:
1) When i open the form "frm_scan_chqbrcd" to do the below task:
a) When input date in the field "capture_date" on the frm_scan_chqbrcd" it should validate with the chq_brcd_c(Which is EN-ddmmyy-0001),
where ddmmyy is the capture date and the format is "dd/mm/yyyy" and only accept if it is valid else it should popup msg as "wrong date selected"
b) Before I scan chq barcode in field "chq_brcd_c" it should check in the table, "tbl_Master_chqbrcd" and validate the field "chq_brcd" is available in the entire COLUMN,
and only accept if it is valid, else it should popup msg as "chq_brcd_c" is not valid code before it moves to the next field "MICR"
c) Similarly when I input MICR it should check in another table, "tbl_Master" and validate the field "MICR" in tbl_Master and except if it is validated,
else it should popup msg as "MICR" is not valid MICR code and allow user to check the re-typed the code.
Below is the data which will be inputted in "frm_scan_chqbrcd"
chq_brcd_c Capture_date_c MICR
EN-040117-0001 04/01/2017 6286858020201257100540010040117
EN-040117-0002 04/01/2017 7831450022201010011430158040117
EN-040117-0003 04/01/2017 0001357033201170793177758040117
EN-040117-0004 04/01/2017 0001557033201170793177758040117
On the frm_scan_chqbrcd, there is button when clicked will run the query "qry_update_chq_env" it will update the table "tbl_Master before matching the MICR in that particular ROW.
2) When I open the form "frm_scan_envbrcd" to do the below task:
a) Will search for envbrcd and go the attached subform, "subfrm_temp_envbrcd_e" field "chq_brcd_e" to capture the chq barcode. The system should validate the below before accepting the record.
i) validate chq_brcd_e is matching with tbl_Master_chqbrcd field "chqbrcd" and If it is matching then go do the second field and
ii) validate due_date_e is matching with tbl_Master_chqbrcd field "duedate". If not popup msg, "Invalid chq barcode mis-match with chq duedate"
b) when I scan the envbrcd (envelope barcode, format: E-ddmmyy-1) it should check for the envdate (envelope date) which is the "due_date" and the format is "dd/mm/yyyy", before accepting the barcode.
If the date is not matching, it should stop the user and pop msg, ""Invalid date does not match with the envdate"
a) Before I scan envelope barcode in field "env_brcd_c" it should check in the table, "tbl_Master_envbrcd" and validate the field "chq_brcd" is available in the entire column.
Similarly when i input MICR it should check in another table, "tbl_Master" and validate the field "MICR" in tbl_Master.
Below is the data which inputted in "frm_scan_envbrcd"
chq_brcd_e Due_date_e
EN-040117-0001 11/01/2017
EN-040117-0002 12/01/2017
EN-040117-0003 13/01/2017
EN-040117-0004 15/01/2017
Thanks
Request your help on DCount. I have attached my db for better clarification
Hi! I have attached my db:
I want to achieve the below 1 & 2:
1) When i open the form "frm_scan_chqbrcd" to do the below task:
a) When input date in the field "capture_date" on the frm_scan_chqbrcd" it should validate with the chq_brcd_c(Which is EN-ddmmyy-0001),
where ddmmyy is the capture date and the format is "dd/mm/yyyy" and only accept if it is valid else it should popup msg as "wrong date selected"
b) Before I scan chq barcode in field "chq_brcd_c" it should check in the table, "tbl_Master_chqbrcd" and validate the field "chq_brcd" is available in the entire COLUMN,
and only accept if it is valid, else it should popup msg as "chq_brcd_c" is not valid code before it moves to the next field "MICR"
c) Similarly when I input MICR it should check in another table, "tbl_Master" and validate the field "MICR" in tbl_Master and except if it is validated,
else it should popup msg as "MICR" is not valid MICR code and allow user to check the re-typed the code.
Below is the data which will be inputted in "frm_scan_chqbrcd"
chq_brcd_c Capture_date_c MICR
EN-040117-0001 04/01/2017 6286858020201257100540010040117
EN-040117-0002 04/01/2017 7831450022201010011430158040117
EN-040117-0003 04/01/2017 0001357033201170793177758040117
EN-040117-0004 04/01/2017 0001557033201170793177758040117
On the frm_scan_chqbrcd, there is button when clicked will run the query "qry_update_chq_env" it will update the table "tbl_Master before matching the MICR in that particular ROW.
2) When I open the form "frm_scan_envbrcd" to do the below task:
a) Will search for envbrcd and go the attached subform, "subfrm_temp_envbrcd_e" field "chq_brcd_e" to capture the chq barcode. The system should validate the below before accepting the record.
i) validate chq_brcd_e is matching with tbl_Master_chqbrcd field "chqbrcd" and If it is matching then go do the second field and
ii) validate due_date_e is matching with tbl_Master_chqbrcd field "duedate". If not popup msg, "Invalid chq barcode mis-match with chq duedate"
b) when I scan the envbrcd (envelope barcode, format: E-ddmmyy-1) it should check for the envdate (envelope date) which is the "due_date" and the format is "dd/mm/yyyy", before accepting the barcode.
If the date is not matching, it should stop the user and pop msg, ""Invalid date does not match with the envdate"
a) Before I scan envelope barcode in field "env_brcd_c" it should check in the table, "tbl_Master_envbrcd" and validate the field "chq_brcd" is available in the entire column.
Similarly when i input MICR it should check in another table, "tbl_Master" and validate the field "MICR" in tbl_Master.
Below is the data which inputted in "frm_scan_envbrcd"
chq_brcd_e Due_date_e
EN-040117-0001 11/01/2017
EN-040117-0002 12/01/2017
EN-040117-0003 13/01/2017
EN-040117-0004 15/01/2017
Thanks