F
Faye Gorne
New to coding and need help with field validation and LookUp function.
Tables:
01. Emploee (fields = Employee ID, Fname, Lname)
02. Week Ending Dates (fields = Week Ending, Employee ID)
I am trying to build a form based on these tables.
First Employee ID is entered. Before update I want to validate this field
then look it up in the Employee table and validate it again against the table
value and if it is found in the table, populate Fname and Lname fields with
the corresponding values. Bellow are the steps.
Validate Employee ID
Before Update
If invalid, display error message "Invalid value"
If valid, Look it up in the Employee table and compare
If not found in the table, display message "Emploee ID is not found.
Contact
Administrator".
If found, LookUp Employee ID in the Employee table and populate Fname
& Lname fileds.
Validate Week Ending
Before Update
If invalid, display error message "Invalid value"
If valid, LookUp in Week Ending Date table.
If not found, display message "Incorect week ending date"
Could you please help me with directions and coding?
Tables:
01. Emploee (fields = Employee ID, Fname, Lname)
02. Week Ending Dates (fields = Week Ending, Employee ID)
I am trying to build a form based on these tables.
First Employee ID is entered. Before update I want to validate this field
then look it up in the Employee table and validate it again against the table
value and if it is found in the table, populate Fname and Lname fields with
the corresponding values. Bellow are the steps.
Validate Employee ID
Before Update
If invalid, display error message "Invalid value"
If valid, Look it up in the Employee table and compare
If not found in the table, display message "Emploee ID is not found.
Contact
Administrator".
If found, LookUp Employee ID in the Employee table and populate Fname
& Lname fileds.
Validate Week Ending
Before Update
If invalid, display error message "Invalid value"
If valid, LookUp in Week Ending Date table.
If not found, display message "Incorect week ending date"
Could you please help me with directions and coding?