I´m working on a small database for a nonprofit to keep track of children who visit our community center, but I´m not an expert at all.
After clicking Save button in frmDailyVisitsm, a new record is inserted into tblDailyVisits. After that I need it to do the following, but I have no idea on how to achieve it:
- To update the LastVisit field in tblChildren with VisitDate value from tblDailyVisits/frmDailyVisits.
- Calculate the difference between two dates and display a message if it´s greater than one year. These dates are stored one on each of the two tables (tblDailyVisits.Visitdate and tblChildren.LastVisit). Maybe using this expression: Int(DateDiff("d",tblChildren[LastVisit]), tblDailyVisits[Visitdate]/365.25)
I really appreciate your help.