Need Some Help,
In Modifing this Bit of VBA Code,
This the code i use and it works but i want it to go one step further
in on the open event of my main start up form
If DCount("[ProjectQNo]", "Qry_DueProjects") 0 Then
DoCmd.RunMacro "TodayProjectsEmail"
End If
in that Macro i also have a action which updates a Field PrintedDate
in the Qry_DueProjects and puts todays date in.
What i Want to happen is
If DCount("[ProjectQNo]", "Qry_DueProjects") 0 (and
PrintedNotification is Null) Then
DoCmd.RunMacro "TodayProjectsEmail"
End If
Which Should then only print that Query Once day.