Weekday saving

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

Subject: Weekday saving

It’s got nothing to do with the weekday or anything like that. Take another look at the documentation for the Save method of the NotesDocument class – if you save the doc, you save the doc. All you’re doing is telling it not to save if there is a run-time conflict (someone or something else has created a newer version of the document) and not to treat the conflict as a response if one occurs.