Here is the code I am using to use the current form's name (contains a date). In my dev environment using InfoPath 2003 SP2 all is well, in my client's environment (SP1) a new form is added to the library when it is re-submitted that is named with the current date as opposed to just updating the current form. I have had similar code working with SP1 so I don't think it should matter. I am guessing that the client may be missing some other resource or missed a config step. I hope this extra info will help me get help.
Any and all comments are greatly appreciated and I fully intend to contribute help to others in the future.
if (! thisXDocument.IsNew)
{
DAVAdapter davAdapter = thisXDocument.DataAdapters["Main Submit"] as DAVAdapter;
if (thisXDocument.URI.StartsWith(davAdapter.FolderURL))
{
thisFileName = thisXDocument.URI.Substring(davAdapter.FolderURL.Length);
}