HiCould you tell me what is wrong with my code. This is ran in an agent that gathers inforamtion from a database and saves it in another database, but I only want it to save the information on Sunday and not any other day of the week.
It still saves it everytime it runs during the week.
’ Set it to run everyday, but only save on Sunday:
If Weekday(Today) = 1 Then
Call idoc.Save(True,True)
End If
If Weekday(Today) <> 1 Then
Call idoc.Save(False,False)
End If