Hi, I have two table , 1- database and named as "database"
2- second table named "Employees" and it has users username , passwords, Emails what I want to do, once I update a record in the database, I need the owner of that record will receive email with the updated values how I can do this ? regards.
To do so you need to make sure main table and Employees table are linked. I assume that both those tables have a common EmployeesID field. sql = "select email from Employees where EmployeeID = " & values("EmployeeID")
set rstmp = CustomQuery(sql) Now rtmp("email") contains user email address that you can use in your code.