I have created payroll database and I have table "Salaries" with EmployeeID (number), PayDate (date) and other fileds. I have form for calculating of salaries (with txtEmployeeID, txtPayDate) but before i store data in Salary table i need to check whether salary is already entered in table "Salaries". I need to check EmployeeID and PayDate fields in Salary so operator could not preceed if salary for any employee is already entered. This could be done having EmployeeID and PayDate as primary Key (system would give duplicate error) but I need to do it programatically with dlookup or any VBA function or module.
fad
fad